Skip to content

Add support for mypy 0.960 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 58 additions & 8 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,48 @@ name: Python package
on: [push]

jobs:
test:
test-py310:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -c constraints.txt pip
python -m pip install -c constraints.txt invoke tox
- name: Run tox
env:
TOX_PARALLEL_NO_SPINNER: "1"
run: |
inv mkdir build/coverage-data
inv tox -e "py310-*"

test-py37-py38-py39:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 8
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -c constraints.txt pip
python -m pip install -c constraints.txt invoke tox
- name: Run tox
env:
Expand All @@ -30,17 +55,42 @@ jobs:
inv mkdir build/coverage-data
inv tox -e "py-*"

test-py36:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.6"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install pip==21.3.1
python -m pip install invoke tox
- name: Run tox
env:
TOX_PARALLEL_NO_SPINNER: "1"
run: |
inv mkdir build/coverage-data
inv tox -e "py36-*"

lint:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
44 changes: 22 additions & 22 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,60 @@
#
attrs==21.4.0
binaryornot==0.4.4
black==22.1.0
boolean-py==3.8
black==22.3.0
boolean-py==4.0
bump2version==1.0.1
certifi==2021.10.8
certifi==2022.5.18.1
chardet==4.0.0
charset-normalizer==2.0.12
click==8.0.4
coverage==6.3.2
click==8.1.3
coverage==6.4
dflit==2.3.0.1
dflit-core==2.3.0.1
distlib==0.3.4
docutils==0.18.1
filelock==3.6.0
filelock==3.7.0
flake8==4.0.1
flake8-black==0.3.2
flake8-black==0.3.3
flake8-isort==4.1.1
fsfe-reuse==1.0.0
idna==3.3
iniconfig==1.1.1
invoke==1.6.0
invoke==1.7.1
isort==5.10.1
jinja2==3.0.3
license-expression==21.6.14
markupsafe==2.1.0
jinja2==3.1.2
license-expression==30.0.0
markupsafe==2.1.1
mccabe==0.6.1
mypy==0.931
mypy-extensions==0.4.3
packaging==21.3
pathspec==0.9.0
pep517==0.12.0
pip-tools==6.5.1
platformdirs==2.5.1
pip-tools==6.6.2
platformdirs==2.5.2
pluggy==1.0.0
py==1.11.0
pycodestyle==2.8.0
pyflakes==2.4.0
pyparsing==3.0.7
pyparsing==3.0.9
pytest==7.0.1
pytest-cov==3.0.0
pytest-html==3.1.1
pytest-metadata==1.11.0
pytest-metadata==2.0.1
python-debian==0.1.43
pytoml==0.1.21
requests==2.27.1
reuse==0.14.0
reuse==1.0.0
six==1.16.0
testfixtures==6.18.5
toml==0.10.2
tomli==2.0.1
tox==3.24.5
tox==3.25.0
tox-pyenv==1.1.0
typing-extensions==4.1.1
urllib3==1.26.8
virtualenv==20.13.2
typing-extensions==4.2.0
urllib3==1.26.9
virtualenv==20.14.1
wheel==0.37.1
pip==22.0.3
setuptools==60.9.3
pip==22.1.1
setuptools==62.3.2
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand All @@ -29,10 +30,10 @@ dist-name = "pytest-mypy-testing"
home-page = "https://github.com/davidfritzsche/pytest-mypy-testing"
license = "Apache-2.0 OR MIT"
requires = [
"pytest<8",
"pytest>=6,<8",
"mypy",
]
requires-python = ">=3.7"
requires-python = ">=3.6"

[tool.flit.entrypoints.pytest11]
mypy-testing = "pytest_mypy_testing.plugin"
Expand Down
44 changes: 22 additions & 22 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ attrs==21.4.0
# via pytest
binaryornot==0.4.4
# via reuse
black==22.1.0
black==22.3.0
# via
# -r requirements.in
# flake8-black
boolean-py==3.8
boolean-py==4.0
# via
# license-expression
# reuse
bump2version==1.0.1
# via -r requirements.in
certifi==2021.10.8
certifi==2022.5.18.1
# via requests
chardet==4.0.0
# via
# binaryornot
# python-debian
charset-normalizer==2.0.12
# via requests
click==8.0.4
click==8.1.3
# via
# black
# pip-tools
coverage[toml]==6.3.2
coverage[toml]==6.4
# via
# -r requirements.in
# pytest-cov
Expand All @@ -42,15 +42,15 @@ distlib==0.3.4
# via virtualenv
docutils==0.18.1
# via dflit
filelock==3.6.0
filelock==3.7.0
# via
# tox
# virtualenv
flake8==4.0.1
# via
# flake8-black
# flake8-isort
flake8-black==0.3.2
flake8-black==0.3.3
# via -r requirements.in
flake8-isort==4.1.1
# via -r requirements.in
Expand All @@ -60,15 +60,15 @@ idna==3.3
# via requests
iniconfig==1.1.1
# via pytest
invoke==1.6.0
invoke==1.7.1
# via -r requirements.in
isort==5.10.1
# via flake8-isort
jinja2==3.0.3
jinja2==3.1.2
# via reuse
license-expression==21.6.14
license-expression==30.0.0
# via reuse
markupsafe==2.1.0
markupsafe==2.1.1
# via jinja2
mccabe==0.6.1
# via flake8
Expand All @@ -86,9 +86,9 @@ pathspec==0.9.0
# via black
pep517==0.12.0
# via pip-tools
pip-tools==6.5.1
pip-tools==6.6.2
# via -r requirements.in
platformdirs==2.5.1
platformdirs==2.5.2
# via
# black
# virtualenv
Expand All @@ -104,7 +104,7 @@ pycodestyle==2.8.0
# via flake8
pyflakes==2.4.0
# via flake8
pyparsing==3.0.7
pyparsing==3.0.9
# via packaging
pytest==7.0.1
# via
Expand All @@ -116,7 +116,7 @@ pytest-cov==3.0.0
# via -r requirements.in
pytest-html==3.1.1
# via -r requirements.in
pytest-metadata==1.11.0
pytest-metadata==2.0.1
# via pytest-html
python-debian==0.1.43
# via reuse
Expand All @@ -128,7 +128,7 @@ requests==2.27.1
# via
# dflit
# reuse
reuse==0.14.0
reuse==1.0.0
# via fsfe-reuse
six==1.16.0
# via
Expand All @@ -146,27 +146,27 @@ tomli==2.0.1
# mypy
# pep517
# pytest
tox==3.24.5
tox==3.25.0
# via
# -r requirements.in
# tox-pyenv
tox-pyenv==1.1.0
# via -r requirements.in
typing-extensions==4.1.1
typing-extensions==4.2.0
# via mypy
urllib3==1.26.8
urllib3==1.26.9
# via requests
virtualenv==20.13.2
virtualenv==20.14.1
# via tox
wheel==0.37.1
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
pip==22.0.3
pip==22.1.1
# via
# -r requirements.in
# pip-tools
setuptools==60.9.3
setuptools==62.3.2
# via
# -r requirements.in
# pip-tools
Expand Down
Loading