Skip to content

Commit

Permalink
Update pep8-naming compatibility with flake8
Browse files Browse the repository at this point in the history
`pep8-naming` tests fail for `flake8` v3/v4; avoid suggesting that it works.

Signed-off-by: Stavros Ntentos <11300730-stavros-relex@users.noreply.gitlab.com>
  • Loading branch information
Stavros Ntentos committed Dec 14, 2022
1 parent b3492ee commit b1020e3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flake8>=5.0.0,<6.0.0
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ project_urls =
Source=https://github.com/PyCQA/pep8-naming
Issues=https://github.com/PyCQA/pep8-naming/issues
Changelog=https://github.com/PyCQA/pep8-naming/blob/main/CHANGELOG.rst

[options]
install_requires = file: requirements.txt
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def run_tests(self):
license='Expat license',
package_dir={'': 'src'},
py_modules=['pep8ext_naming'],
install_requires=['flake8>=3.9.1'],
zip_safe=False,
python_requires='>=3.7',
entry_points={
Expand Down
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[tox]
envlist = py37,py38,py39,py310,py310-flake8,pypy3
envlist =
py37-flake8{5,6},
py38-flake8{5,6},
py39-flake8{5,6},
py310-flake8{5,6},
py310-flake8,
pypy3

[gh-actions]
python =
Expand All @@ -12,7 +18,8 @@ python =
[testenv]
commands = python run_tests.py
deps =
flake8 >= 5.0.0
flake85: flake8 >= 5.0.0, < 6.0.0
flake86: flake8 >= 6.0.0, < 7.0.0

[testenv:py310-flake8]
basepython = python3.10
Expand Down

0 comments on commit b1020e3

Please sign in to comment.