From ff47a9289fadf20d269ef21f7cad824035a704b1 Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Thu, 21 Sep 2017 23:13:20 +0200 Subject: [PATCH 1/2] add more linter plugins and settings that are uncritical --- setup.cfg | 11 ++++------- tox.ini | 13 ++++++++++++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9d28525..1099619 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,15 +46,12 @@ not_skip = [flake8] exclude = bootstrap.py, - src/RestrictedPython/tests, + ignore = - N801, - N802, - N803, - N805, - N806, - N812, + + +no-accept-encodings = True [coverage:run] branch = True diff --git a/tox.ini b/tox.ini index d3a2528..5846b1d 100644 --- a/tox.ini +++ b/tox.ini @@ -94,13 +94,24 @@ skip_install = true deps = -cconstraints.txt + isort flake8 # helper to generate HTML reports: flake8-html # Useful flake8 plugins that are Python and Plone specific: + flake8-coding flake8-debugger + flake8-deprecated + flake8-print + flake8-pytest flake8-todo - isort + flake8-isort + # Potential flake8 plugins that should be used: # TBD + #flake8-docstrings + #flake8-pep3101 + #flake8-plone-hasattr + #flake8-string-format + #flake8_strict commands = mkdir -p {toxinidir}/reports/flake8 From 6b39462ae48f37871c86091f00f23ed026cd96af Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Thu, 21 Sep 2017 23:51:02 +0200 Subject: [PATCH 2/2] add some more, that needs to be discussed --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 5846b1d..fd0ce6c 100644 --- a/tox.ini +++ b/tox.ini @@ -106,12 +106,17 @@ deps = flake8-pytest flake8-todo flake8-isort + mccabe # Potential flake8 plugins that should be used: # TBD + #flake8-blind-except + #flake8-commas #flake8-docstrings + #flake8-mypy #flake8-pep3101 #flake8-plone-hasattr #flake8-string-format #flake8_strict + #flake8-quotes commands = mkdir -p {toxinidir}/reports/flake8