Skip to content

Commit 35fab38

Browse files
authored
Merge pull request #144 from dmtucker/py311
Add support for Python 3.11
2 parents 9e44462 + 53b091d commit 35fab38

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

.github/workflows/validation.yml

Lines changed: 1 addition & 1 deletion
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

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.10.1](https://github.com/dbader/pytest-mypy/milestone/19)
4+
* Work around https://github.com/python/mypy/issues/14042.
5+
* Add support for Python 3.11.
6+
37
## [0.10.0](https://github.com/dbader/pytest-mypy/milestone/18)
48
* Drop support for python<3.6.
59

setup.py

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy