Skip to content

Commit

Permalink
Merge pull request #144 from dmtucker/py311
Browse files Browse the repository at this point in the history
Add support for Python 3.11
  • Loading branch information
dmtucker authored Nov 9, 2022
2 parents 9e44462 + 53b091d commit 35fab38
Show file tree
Hide file tree
Showing 5 changed files with 10 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
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.10.1](https://github.com/dbader/pytest-mypy/milestone/19)
* Work around https://github.com/python/mypy/issues/14042.
* Add support for Python 3.11.

## [0.10.0](https://github.com/dbader/pytest-mypy/milestone/18)
* Drop support for python<3.6.

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 35fab38

Please sign in to comment.