diff --git a/.landscape.yml b/.landscape.yml index 6826b3f6e..d10d1c8a2 100644 --- a/.landscape.yml +++ b/.landscape.yml @@ -1,4 +1,4 @@ -doc-warnings: yes +doc-warnings: no # experimental, raises an exception test-warnings: no strictness: veryhigh max-line-length: 160 @@ -11,6 +11,21 @@ python-targets: - 3 ignore-paths: - examples/webchat + - doc/ + - build + - dist + - .eggs + # util creates lots of warnings. ideally they should be fixed, + # but that code doesn't change often + - util + # likewise with scripts + - scripts/ +ignore-patterns: + # disabled code + - greentest/xtest_.*py + # standard library code + - ^greentest/2.* + - ^greentest/3.* pyroma: run: true diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 000000000..e994164e9 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,23 @@ +[MESSAGES CONTROL] + +# Disable the message, report, category or checker with the given id(s). You +# can either give multiple identifier separated by comma (,) or put this option +# multiple time (only on the command line, not in the configuration file where +# it should appear only once). +#disable=I0011,W0511,W0312,C0103,C0301,C0111,C0324,C0321,R0903,R0201,W0613,W0232,W0142,R0922,C0330 +disable=wrong-import-position, + wrong-import-order, + missing-docstring, + ungrouped-imports, + invalid-name, # We get lots of these, especially in scripts. should fix many of them + protected-access, # We have many cases of this; legit ones need to be examinid and commented, then this removed + +[FORMAT] +# duplicated from setup.cfg +max-line-length=160 + +[MISCELLANEOUS] +# List of note tags to take in consideration, separated by a comma. +#notes=FIXME,XXX,TODO +# Disable that, we don't want them in the report (???) +notes= diff --git a/setup.cfg b/setup.cfg index 5247baa05..ff15f5597 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,5 @@ [pep8] -ignore=E702,E265,E402,E731,E266,E261,W503,E129 +# N801: class names should use CapWords +ignore=E702,E265,E402,E731,E266,E261,W503,E129,N801 max_line_length=160 exclude=.runtimes,.eggs,.tox,.git,build,2.6,2.7,2.7pypy,3.3,3.5,test_support.py,test_queue.py,patched_tests_setup.py,test_threading_2.py,lock_tests.py,_sslgte279.py,3.4