Skip to content

Commit 53c603c

Browse files
committed
Cleanup references to master branch
1 parent 86dc194 commit 53c603c

16 files changed

+22
-22
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
jobs:

.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-mypy-demo
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main, master, 'release*']
6+
branches: [main, 'release*']
77
tags: ['*']
88
pull_request:
99
paths:

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
@@ -247,7 +247,7 @@ Your CI script might work like this:
247247

248248
* Create a tarball from the ``.mypy_cache`` directory.
249249

250-
* Determine the current git master branch commit id (say, using
250+
* Determine the current git main branch commit id (say, using
251251
``git rev-parse HEAD``).
252252

253253
* Upload the tarball to the shared repository with a name derived from the
@@ -262,13 +262,13 @@ populates the local ``.mypy_cache`` directory from the shared
262262
repository and then runs a normal incremental build.
263263

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

269269
.. code::
270270
271-
git merge-base HEAD origin/master
271+
git merge-base HEAD origin/main
272272
273273
The next step is to download the cache data (contents of the
274274
``.mypy_cache`` directory) from the shared repository based on the
@@ -315,11 +315,11 @@ at least if your codebase is hundreds of thousands of lines or more:
315315
potentially large number of changes in an incremental build, as this can
316316
be much slower than downloading cache data and restarting the daemon.
317317

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

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

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/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
@@ -1150,7 +1150,7 @@ def report_internal_error(
11501150
# Print "INTERNAL ERROR" message.
11511151
print(
11521152
f"{prefix}error: INTERNAL ERROR --",
1153-
"Please try using mypy master on GitHub:\n"
1153+
"Please try using mypy main on GitHub:\n"
11541154
"https://mypy.readthedocs.io/en/stable/common_issues.html"
11551155
"#using-a-development-mypy-build",
11561156
file=stderr,
@@ -1159,7 +1159,7 @@ def report_internal_error(
11591159
print("Please report a bug at https://github.com/python/mypy/issues", file=stderr)
11601160
else:
11611161
print(
1162-
"If this issue continues with mypy master, "
1162+
"If this issue continues with mypy main, "
11631163
"please report a bug at https://github.com/python/mypy/issues",
11641164
file=stderr,
11651165
)

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.

0 commit comments

Comments
 (0)