From 3a7ced5843ef52b06e9613f29a009f1ed59cdd1f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 21 Jan 2016 23:22:31 +0100 Subject: [PATCH] flake8: Add ebb-lint plugin. lint for ensuring quality software https://pypi.python.org/pypi/ebb-lint/ --- setup.cfg | 16 +++++++++++++++- tox.ini | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 3d15facf7..ffb25dfd7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,21 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py # E266: too many leading '#' for block comment # F401: Unused import # N802: function name should be lowercase -ignore = E128,E226,E265,E501,E402,E266,F401,N802 +# L101: The __init__ method of classes must not have a docstring +# L102: A docstring was incorrectly formatted. +# L103: A test docstring must not start with any form of the words "test", ... +# L201: Container literals must have a trailing comma +# L202: print is not allowed except for debugging. +# L203: pdb and compatible modules are not allowed except for debugging. +# L204: Implicit string literal concatenation is only allowed if every string +# being concatenated is parenthesize +# L207: pass is only necessary in non-optional suites containing no other +# statements. +ignore = + E128,E226,E265,E501,E402,E266, + F401, + N802, + L101,L102,L103,L201,L202,L203,L204,L207 max-complexity = 12 putty-ignore = /# pylint: disable=invalid-name/ : +N801,N806 diff --git a/tox.ini b/tox.ini index 91d29500b..11b38977f 100644 --- a/tox.ini +++ b/tox.ini @@ -156,6 +156,7 @@ deps = flake8-debugger==1.4.0 pep8-naming==0.3.3 flake8-putty==0.2.0 + ebb-lint==0.4.3 mccabe==0.3.1 pep8==1.7.0 pyflakes==1.0.0