-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squash! Bump mypy from 0.812 to 0.910 in /tools
This: * Deals with changes in how mypy handles metaclasses * Prefers sys.platform == "win32" due to python/mypy#8166 and mypy not having WindowsError defined by default any more * Installs various typestubs * Rewrites tox.ini to avoid duplicating everything, and allowing new versions of Python to be easily tested (as tox -e py310-mypy will now work without further changes).
- Loading branch information
Showing
5 changed files
with
43 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
mypy==0.931 | ||
mypy-extensions==0.4.3 | ||
toml==0.10.2 | ||
typed-ast==1.4.3 | ||
types-atomicwrites==1.4.1 | ||
types-PyYAML==6.0.0 | ||
types-requests==2.25.11 | ||
types-setuptools==57.4.2 | ||
types-six==1.16.2 | ||
types-ujson==4.2.0 | ||
typing-extensions==3.10.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,24 @@ | ||
[tox] | ||
envlist = py36,py37,py38,py39,{py36,py37,py38,py39}-flake8,{py36,py37,py38,py39}-mypy | ||
envlist = py36,py37,py38,py39,{py36,py37,py38,py39}-{flake8,mypy} | ||
skipsdist=True | ||
skip_missing_interpreters = False | ||
skip_missing_interpreters=False | ||
|
||
[testenv] | ||
deps = | ||
-r{toxinidir}/requirements_pytest.txt | ||
-r{toxinidir}/requirements_tests.txt | ||
!flake8-!mypy: -r{toxinidir}/requirements_pytest.txt | ||
!flake8-!mypy: -r{toxinidir}/requirements_tests.txt | ||
flake8: -r{toxinidir}/requirements_flake8.txt | ||
mypy: -r{toxinidir}/requirements_mypy.txt | ||
|
||
commands = pytest --cov=tools --cov-report=term {posargs} | ||
changedir = | ||
mypy: {toxinidir}/.. | ||
|
||
commands = | ||
!flake8-!mypy: pytest --cov=tools --cov-report=term {posargs} | ||
flake8: flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
mypy: mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
passenv = | ||
HYPOTHESIS_PROFILE | ||
PY_COLORS | ||
TASKCLUSTER_ROOT_URL | ||
|
||
[testenv:py36-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py37-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py38-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py39-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py36-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py37-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py38-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py39-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ |