diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..3da4e9c6b --- /dev/null +++ b/.flake8 @@ -0,0 +1,8 @@ +[flake8] +# E241: Multiple spaces after , +# E265: Block comment should start with '#' +# F401: Unused import (checked by pylint) +# E501: Line too long (checked by pylint) +ignore=E241,E265,F401,E501 +max_complexity = 10 +exclude = appdirs.py diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 000000000..22d815227 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,42 @@ +[MASTER] +ignore=appdirs.py + +[MESSAGES CONTROL] +disable=no-self-use, + super-on-old-class, + old-style-class, + abstract-class-little-used, + bad-builtin, + star-args, + fixme, + global-statement, + no-init, + locally-disabled, + too-many-ancestors, + too-few-public-methods, + too-many-public-methods + +[BASIC] +module-rgx=[a-z_]*$ +const-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$ +method-rgx=[a-z_][A-Za-z0-9_]{2,30}$ +attr-rgx=[a-z_][a-z0-9_]{0,30}$ +argument-rgx=[a-z_][a-z0-9_]{0,30}$ +variable-rgx=[a-z_][a-z0-9_]{0,30}$ +class-attribute-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$ +inlinevar-rgx=[a-z_][a-z0-9_]*$ +bad-names=foo,bar,baz,tmp + +[FORMAT] +max-line-length=79 +ignore-long-lines=