Skip to content

Commit d0800b5

Browse files
committed
Add support for Python 3.11
1 parent 9e44462 commit d0800b5

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
8+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def read(fname):
3838
'pytest>=6.2; python_version>="3.10"',
3939
'mypy>=0.500; python_version<"3.8"',
4040
'mypy>=0.700; python_version>="3.8" and python_version<"3.9"',
41-
'mypy>=0.780; python_version>="3.9"',
41+
'mypy>=0.780; python_version>="3.9" and python_version<"3.11"',
42+
'mypy>=0.900; python_version>="3.11"',
4243
],
4344
classifiers=[
4445
"Development Status :: 4 - Beta",

tests/test_pytest_mypy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def pyfunc(x: int) -> str:
402402

403403
child = testdir.spawn_pytest(
404404
"--mypy --looponfail " + str(pyfile),
405-
expect_timeout=30.0,
405+
expect_timeout=60.0,
406406
)
407407

408408
num_tests = 2

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ envlist =
88
py38-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.71, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
99
py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
1010
py310-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
11+
py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.9x}
1112
publish
1213
static
1314

@@ -18,6 +19,7 @@ python =
1819
3.8: py38-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.71, 0.7x, 0.80, 0.8x, 0.90, 0.9x}, publish, static
1920
3.9: py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
2021
3.10: py310-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
22+
3.11: py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.9x}
2123

2224
[testenv]
2325
deps =

0 commit comments

Comments
 (0)