jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/708201 )
Change subject: [tests] add a new hacking test to tox-docker ......................................................................
[tests] add a new hacking test to tox-docker
flake8 hacking extension requires flake8 < 3.9 and has its own requirement file for flake8 dependencies. If flake8 >= 3.9 is required on our side, hacking falls back to release 3.0.0.
Add a new test "hacking" to tox docker. Use Python 3.7 as interpreter which is mostly used with Pywikibot.
Bug: T287434 Change-Id: Ib4f7c13cda8433ba279f90a18e59a3a67f043228 --- M setup.py M tox.ini 2 files changed, 7 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/setup.py b/setup.py index 79aafd5..feec449 100644 --- a/setup.py +++ b/setup.py @@ -76,7 +76,6 @@ 'flake8': [ # Due to incompatibilities between packages the order matters. 'flake8>=3.9.1', 'pydocstyle>=4.0.0', - 'hacking', 'flake8-bugbear!=21.4.1', 'flake8-coding', 'flake8-colors>=0.1.9', @@ -93,6 +92,7 @@ 'pep8-naming>=0.7', 'pyflakes>=2.1.0', ], + 'hacking': ['hacking'], }
diff --git a/tox.ini b/tox.ini index 22fcbe1..1a34dc9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,8 @@ skip_missing_interpreters = True envlist = commit-message - flake8-{py35,py38} + flake8-{py38,py35} + hacking-py37
[params] doctest_skip = --ignore-files=(eventstreams|gui|mysql).py @@ -25,6 +26,9 @@ flake8: flake8 --version flake8: flake8 --doctests {posargs}
+ hacking: flake8 --version + hacking: flake8 --format=default {posargs} + deeptest: python {[params]generate_user_files} deeptest: python -m unittest discover -vv -p "*_tests.py"
@@ -33,6 +37,7 @@ fasttest: pytest -a 'not net' deps = flake8: .[flake8] + hacking: .[hacking]
fasttest: pytest >= 5.3 fasttest: pytest-attrib>=0.1.3
pywikibot-commits@lists.wikimedia.org