Skip to content

Commit

Permalink
Add support for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtucker committed Nov 9, 2022
1 parent 9e44462 commit d0800b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def read(fname):
'pytest>=6.2; python_version>="3.10"',
'mypy>=0.500; python_version<"3.8"',
'mypy>=0.700; python_version>="3.8" and python_version<"3.9"',
'mypy>=0.780; python_version>="3.9"',
'mypy>=0.780; python_version>="3.9" and python_version<"3.11"',
'mypy>=0.900; python_version>="3.11"',
],
classifiers=[
"Development Status :: 4 - Beta",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pytest_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def pyfunc(x: int) -> str:

child = testdir.spawn_pytest(
"--mypy --looponfail " + str(pyfile),
expect_timeout=30.0,
expect_timeout=60.0,
)

num_tests = 2
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist =
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}
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}
py310-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.9x}
publish
static

Expand All @@ -18,6 +19,7 @@ python =
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
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}
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}
3.11: py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.9x}

[testenv]
deps =
Expand Down

0 comments on commit d0800b5

Please sign in to comment.