Skip to content

Commit

Permalink
Test on flake8 7
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 28, 2024
1 parent d7375ed commit 80657ef
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 40 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
config:
- {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False}
- {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6},build", experimental: True}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ jobs:
config:
- {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False}
- {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6},build", experimental: True}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
config:
- {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False}
- {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6},build", experimental: True}
- {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
5 changes: 5 additions & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ python_versions:
matrix_exclude:
flake8:
- 6
- 7
'3.7':
matrix_exclude:
flake8:
- 6
- 7
'3.8':
'3.9':
'3.10':
Expand All @@ -45,10 +47,12 @@ python_versions:
matrix_exclude:
flake8:
- 6
- 7
pypy37:
matrix_exclude:
flake8:
- 6
- 7
pypy38:
pypy39:

Expand Down Expand Up @@ -89,3 +93,4 @@ third_party_version_matrix:
- 4
- 5
- 6
- 7
43 changes: 27 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
envlist =
py36-flake8{4,5}
py37-flake8{4,5}
py38-flake8{4,5,6}
py39-flake8{4,5,6}
py310-flake8{4,5,6}
py311-flake8{4,5,6}
py312-flake8{5,6}
py313-dev-flake8{5,6}
py38-flake8{4,5,6,7}
py39-flake8{4,5,6,7}
py310-flake8{4,5,6,7}
py311-flake8{4,5,6,7}
py312-flake8{5,6,7}
py313-dev-flake8{5,6,7}
pypy36-flake8{4,5}
pypy37-flake8{4,5}
pypy38-flake8{4,5,6}
pypy39-flake8{4,5,6}
pypy38-flake8{4,5,6,7}
pypy39-flake8{4,5,6,7}
mypy
build
skip_missing_interpreters = True
Expand All @@ -48,16 +48,16 @@ requires =
test =
py36-flake8{4,5}
py37-flake8{4,5}
py38-flake8{4,5,6}
py39-flake8{4,5,6}
py310-flake8{4,5,6}
py311-flake8{4,5,6}
py312-flake8{5,6}
py313-dev-flake8{5,6}
py38-flake8{4,5,6,7}
py39-flake8{4,5,6,7}
py310-flake8{4,5,6,7}
py311-flake8{4,5,6,7}
py312-flake8{5,6,7}
py313-dev-flake8{5,6,7}
pypy36-flake8{4,5}
pypy37-flake8{4,5}
pypy38-flake8{4,5,6}
pypy39-flake8{4,5,6}
pypy38-flake8{4,5,6,7}
pypy39-flake8{4,5,6,7}
qa = mypy, lint
cov = py36-flake84, coverage

Expand All @@ -71,6 +71,7 @@ deps =
flake84: flake8~=4.0
flake85: flake8~=5.0
flake86: flake8~=6.0
flake87: flake8~=7.0
commands =
python --version
python -m pytest --cov=flake8_dunder_all -r aR tests/ {posargs}
Expand Down Expand Up @@ -242,6 +243,16 @@ filterwarnings =
error
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
[testenv:py312-flake8{4,5,6,7}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
[testenv:py313-dev-flake8{4,5,6,7}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
[testenv:py312-flake8{4,5,6}]
setenv =
PYTHONDEVMODE=1
Expand Down

0 comments on commit 80657ef

Please sign in to comment.