Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802779 )
Change subject: [tests] Update pep8-naming requirements
......................................................................
[tests] Update pep8-naming requirements
- require pep8-naming>=0.12.1
- require pep8-naming<0.13.0 with Python < 3.7
- update settings
Change-Id: I53e4bff28dd8e2cef20ad4452ace83b0698e6b5b
---
M setup.py
M tox.ini
2 files changed, 7 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/setup.py b/setup.py
index c0b7e07..6202b51 100755
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,8 @@
'flake8-string-format',
'flake8-tuple>=0.2.8',
'flake8-no-u-prefixed-strings>=0.2',
- 'pep8-naming>=0.7',
+ 'pep8-naming>=0.12.1, <0.13.0; python_version < "3.7"',
+ 'pep8-naming>=0.12.1; python_version >= "3.7"',
'pyflakes>=2.1.0',
],
'hacking': ['hacking'],
diff --git a/tox.ini b/tox.ini
index a491bfb..8808f34 100644
--- a/tox.ini
+++ b/tox.ini
@@ -110,9 +110,13 @@
# DARXXX: Darglint docstring issues to be solved
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
+enable-extensions = H203,H204,H205,N818
exclude = .tox,.git,./*.egg,build,./scripts/i18n/*
+
+# pep8-naming
classmethod-decorators = classmethod,classproperty
+# required with pep8-naming < 0.13
+ignore-names =
setUp,tearDown,setUpClass,tearDownClass,setUpModule,tearDownModule,maxDiff
# darglint
strictness=short
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/802779
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I53e4bff28dd8e2cef20ad4452ace83b0698e6b5b
Gerrit-Change-Number: 802779
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]