Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770883 )
Change subject: [tests] Remove flake8-future_import check ......................................................................
[tests] Remove flake8-future_import check
Currently no imports are made from __future__ but generator_stop should be used. flake8-future-import could check it but propose it for any file even no generators are used. This is not very useful.
Change-Id: Ic37ced51cd9f73830357da824b1ae5729e24b6cd --- M setup.py M tox.ini 2 files changed, 1 insertion(+), 6 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/setup.py b/setup.py index 76a83e6..ae07b29 100755 --- a/setup.py +++ b/setup.py @@ -87,7 +87,6 @@ 'flake8-comprehensions>=3.1.4; python_version >= "3.8"', 'flake8-comprehensions>=2.2.0; python_version < "3.8"', 'flake8-docstrings>=1.3.1', - 'flake8-future-import', 'flake8-mock>=0.3', 'flake8-print>=2.0.1', 'flake8-quotes>=2.0.1', diff --git a/tox.ini b/tox.ini index 1201a5a..2e5202d 100644 --- a/tox.ini +++ b/tox.ini @@ -108,7 +108,7 @@
# DARXXX: Darglint docstring issues to be solved
-ignore = B007,C103,D105,D211,D401,D413,D412,DAR003,DAR101,DAR102,DAR201,DAR202,DAR301,DAR401,DAR402,DAR501,FI1,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503 +ignore = B007,C103,D105,D211,D401,D413,D412,DAR003,DAR101,DAR102,DAR201,DAR202,DAR301,DAR401,DAR402,DAR501,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503 enable-extensions = H203,H204,H205 exclude = .tox,.git,./*.egg,build,./scripts/i18n/* classmethod-decorators = classmethod,classproperty @@ -125,10 +125,6 @@ color = always format = ${blue}%(path)s${reset}: ${bold}line %(row)d:${reset}%(col)d: ${red_bold}%(code)s${reset} %(text)s
-# flake8-future-import -min-version = 3.5 -require-code = true - # The following are to be fixed # N802: function name should be lowercase # N803: argument name should be lowercase
pywikibot-commits@lists.wikimedia.org