Skip to content

Commit 6061119

Browse files
committed
Cleanup references to master branch
1 parent a066b44 commit 6061119

20 files changed

+26
-26
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!--
66
Checklist:
7-
- Read the [Contributing Guidelines](https://github.com/python/mypy/blob/master/CONTRIBUTING.md)
7+
- Read the [Contributing Guidelines](https://github.com/python/mypy/blob/main/CONTRIBUTING.md)
88
- Add tests for all changed behaviour.
99
- If you can't add a test, please explain why and how you verified your changes work.
1010
- Make sure CI passes.

.github/workflows/build_wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Trigger wheel build
22

33
on:
44
push:
5-
branches: [main, master, 'release*']
5+
branches: [main, 'release*']
66
tags: ['*']
77

88
permissions:

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check documentation build
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main, master, 'release*']
6+
branches: [main, 'release*']
77
tags: ['*']
88
pull_request:
99
paths:

.github/workflows/mypy_primer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Run mypy_primer
22

33
on:
4-
# Only run on PR, since we diff against master
4+
# Only run on PR, since we diff against main
55
pull_request:
66
paths-ignore:
77
- 'docs/**'

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main, master, 'release*']
6+
branches: [main, 'release*']
77
tags: ['*']
88
pull_request:
99
paths-ignore:

.github/workflows/test_stubgenc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test stubgenc on pybind11_fixtures
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main, master, 'release*']
6+
branches: [main, 'release*']
77
tags: ['*']
88
pull_request:
99
paths:

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ This feature was contributed by Ivan Levkivskyi (PR [16237](https://github.com/p
10751075

10761076
### Mypy Changelog
10771077

1078-
We now maintain a [changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) in the mypy Git repository. It mirrors the contents of [mypy release blog posts](https://mypy-lang.blogspot.com/). We will continue to also publish release blog posts. In the future, release blog posts will be created based on the changelog near a release date.
1078+
We now maintain a [changelog](https://github.com/python/mypy/blob/main/CHANGELOG.md) in the mypy Git repository. It mirrors the contents of [mypy release blog posts](https://mypy-lang.blogspot.com/). We will continue to also publish release blog posts. In the future, release blog posts will be created based on the changelog near a release date.
10791079

10801080
This was contributed by Shantanu (PR [16280](https://github.com/python/mypy/pull/16280)).
10811081

CREDITS

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Credits
22
-------
33

44
For a full list of contributors you can mine the commit history:
5-
https://github.com/python/mypy/commits/master
5+
https://github.com/python/mypy/commits/main
66

77
For lists of contributors per mypy release (including typeshed) see
88
the release blog posts at https://mypy-lang.blogspot.com/.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ repo directly:
102102
```bash
103103
python3 -m pip install -U git+https://github.com/python/mypy.git
104104
# or if you don't have 'git' installed
105-
python3 -m pip install -U https://github.com/python/mypy/zipball/master
105+
python3 -m pip install -U https://github.com/python/mypy/zipball/main
106106
```
107107

108108
Now you can type-check the [statically typed parts] of a program like this:

docs/source/additional_features.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Your CI script might work like this:
263263

264264
* Create a tarball from the ``.mypy_cache`` directory.
265265

266-
* Determine the current git master branch commit id (say, using
266+
* Determine the current git main branch commit id (say, using
267267
``git rev-parse HEAD``).
268268

269269
* Upload the tarball to the shared repository with a name derived from the
@@ -278,13 +278,13 @@ populates the local ``.mypy_cache`` directory from the shared
278278
repository and then runs a normal incremental build.
279279

280280
The wrapper script needs some logic to determine the most recent
281-
central repository commit (by convention, the ``origin/master`` branch
281+
central repository commit (by convention, the ``origin/main`` branch
282282
for git) the local development branch is based on. In a typical git
283283
setup you can do it like this:
284284

285285
.. code::
286286
287-
git merge-base HEAD origin/master
287+
git merge-base HEAD origin/main
288288
289289
The next step is to download the cache data (contents of the
290290
``.mypy_cache`` directory) from the shared repository based on the
@@ -331,11 +331,11 @@ at least if your codebase is hundreds of thousands of lines or more:
331331
potentially large number of changes in an incremental build, as this can
332332
be much slower than downloading cache data and restarting the daemon.
333333

334-
* If the current local branch is based on a very recent master commit,
334+
* If the current local branch is based on a very recent main commit,
335335
the remote cache data may not yet be available for that commit, as
336336
there will necessarily be some latency to build the cache files. It
337337
may be a good idea to look for cache data for, say, the 5 latest
338-
master commits and use the most recent data that is available.
338+
main commits and use the most recent data that is available.
339339

340340
* If the remote cache is not accessible for some reason (say, from a public
341341
network), the script can still fall back to a normal incremental build.

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
html_theme_options = {
111111
"source_repository": "https://github.com/python/mypy",
112-
"source_branch": "master",
112+
"source_branch": "main",
113113
"source_directory": "docs/source",
114114
}
115115

docs/source/extending_mypy.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ can be specified after colon:
9393
9494
In the following sections we describe the basics of the plugin system with
9595
some examples. For more technical details, please read the docstrings in
96-
`mypy/plugin.py <https://github.com/python/mypy/blob/master/mypy/plugin.py>`_
96+
`mypy/plugin.py <https://github.com/python/mypy/blob/main/mypy/plugin.py>`_
9797
in mypy source code. Also you can find good examples in the bundled plugins
98-
located in `mypy/plugins <https://github.com/python/mypy/tree/master/mypy/plugins>`_.
98+
located in `mypy/plugins <https://github.com/python/mypy/tree/main/mypy/plugins>`_.
9999

100100
High-level overview
101101
*******************

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. Mypy documentation master file, created by
1+
.. Mypy documentation main file, created by
22
sphinx-quickstart on Sun Sep 14 19:50:35 2014.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.

misc/generate_changelog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def filter_omitted_commits(commits: list[CommitInfo]) -> list[CommitInfo]:
9999
def normalize_title(title: str) -> str:
100100
# We sometimes add a title prefix when cherry-picking commits to a
101101
# release branch. Attempt to remove these prefixes so that we can
102-
# match them to the corresponding master branch.
102+
# match them to the corresponding main branch.
103103
if m := re.match(r"\[release [0-9.]+\] *", title, flags=re.I):
104104
title = title.replace(m.group(0), "")
105105
return title

misc/perf_compare.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Simple usage:
44
5-
python misc/perf_compare.py my-branch master ...
5+
python misc/perf_compare.py my-branch main ...
66
77
What this does:
88

misc/trigger_wheel_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ cd build
1919
echo $COMMIT > mypy_commit
2020
git commit -am "Build wheels for mypy $V"
2121
git tag v$V
22-
# Push a tag, but no need to push the change to master
22+
# Push a tag, but no need to push the change to main
2323
git push --tags

mypy/errors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ def report_internal_error(
12611261
# Print "INTERNAL ERROR" message.
12621262
print(
12631263
f"{prefix}error: INTERNAL ERROR --",
1264-
"Please try using mypy master on GitHub:\n"
1264+
"Please try using mypy main on GitHub:\n"
12651265
"https://mypy.readthedocs.io/en/stable/common_issues.html"
12661266
"#using-a-development-mypy-build",
12671267
file=stderr,
@@ -1270,7 +1270,7 @@ def report_internal_error(
12701270
print("Please report a bug at https://github.com/python/mypy/issues", file=stderr)
12711271
else:
12721272
print(
1273-
"If this issue continues with mypy master, "
1273+
"If this issue continues with mypy main, "
12741274
"please report a bug at https://github.com/python/mypy/issues",
12751275
file=stderr,
12761276
)

mypyc/doc/dev-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ features.
6363
## Development Environment
6464

6565
First you should set up the mypy development environment as described in
66-
the [mypy docs](https://github.com/python/mypy/blob/master/README.md).
66+
the [mypy docs](https://github.com/python/mypy/blob/main/README.md).
6767
macOS, Linux and Windows are supported.
6868

6969
## Compiling and Running Programs

mypyc/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. mypyc documentation master file, created by
1+
.. mypyc documentation main file, created by
22
sphinx-quickstart on Sun Apr 5 14:01:55 2020.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def run(self):
238238
project_urls={
239239
"Documentation": "https://mypy.readthedocs.io/en/stable/index.html",
240240
"Repository": "https://github.com/python/mypy",
241-
"Changelog": "https://github.com/python/mypy/blob/master/CHANGELOG.md",
241+
"Changelog": "https://github.com/python/mypy/blob/main/CHANGELOG.md",
242242
"Issues": "https://github.com/python/mypy/issues",
243243
},
244244
)

0 commit comments

Comments
 (0)