jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/487474 )
Change subject: [tests] Cleanup flake8 settings at tox.ini ......................................................................
[tests] Cleanup flake8 settings at tox.ini
Change-Id: Idb20ef489b1547089c6a79f6ab3b80c9fb289df8 --- M tox.ini 1 file changed, 10 insertions(+), 10 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/tox.ini b/tox.ini index f830fd6..f73319a 100644 --- a/tox.ini +++ b/tox.ini @@ -118,24 +118,16 @@ # H301: Do not import more than one module per line; Pywikibot uses H306 (Alphabetically order your imports by the full module path) # H404: docstring multiline start # H405: docstring summary line +# H903: Use only UNIX style newlines, not Windows style # P101: format string does contain unindexed parameters # P102: docstring does contain unindexed parameters # P103: other string does contain unindexed parameters # W503: line break before binary operator; against current PEP 8 recommendation
-# The following are to be fixed -# D102: Missing docstring in public method -# D103: Missing docstring in public function -# N802: function name should be lowercase -# N803: argument name should be lowercase -# N806: variable in function should be lowercase -# N815: mixedCase variable in class scope -# N816: mixedCase variable in global scope - # Errors occured after upgrade to pydocstyle 2.0.0 (T164142) # D401: First line should be in imperative mood; try rephrasing -# D413: Missing blank line after last section # D412: No blank lines allowed between a section header and its content +# D413: Missing blank line after last section
ignore = D105,D211,D401,D413,D412,FI12,FI13,FI15,FI16,FI17,FI5,H101,H236,H301,H404,H405,H903,P101,P102,P103,W503 enable-extensions = H203,H204,H205 @@ -144,6 +136,14 @@ accept-encodings = utf-8 require-code = true classmethod-decorators = classmethod,classproperty + +# The following are to be fixed +# N802: function name should be lowercase +# N803: argument name should be lowercase +# N806: variable in function should be lowercase +# N815: mixedCase variable in class scope +# N816: mixedCase variable in global scope + per-file-ignores = generate_family_file.py : T001 pwb.py : T001