diff --git a/.prospector.yaml b/.prospector.yaml deleted file mode 100644 index 810aeba8..00000000 --- a/.prospector.yaml +++ /dev/null @@ -1,44 +0,0 @@ -test-warnings: true - -ignore-paths: - - gunicorn/_compat.py - - gunicorn/argparse_compat.py - - gunicorn/selectors.py - - gunicorn/six.py - - build - - docs - - examples - - scripts - - tests/requests/valid - - tests/requests/invalid - - tests/treq.py # We are going to replace this with pytest. - - tests/t.py # Same as above. - - tests/test_selectors.py # This basically port of upstream selectors tests. - - tests/test_gaiohttp.py # TODO: We are going to remove this worker. - -pep8: - run: false - -pyflakes: - run: false - -pylint: - disable: - - bare-except - - misplaced-comparison-constant - - protected-access - - import-error - - too-many-branches - - too-many-arguments - - too-many-nested-blocks - - eval-used - - no-else-return - - wrong-import-position - - unused-argument - - import-self - - duplicate-bases - - no-staticmethod-decorator - - not-callable - -mccabe: - run: false diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 00000000..3facc750 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,52 @@ +[MASTER] + +ignore= + build, + docs, + examples, + scripts, + _compat.py, + argparse_compat.py, + six.py, + selectors.py, + _gaiohttp.py, + +[MESSAGES CONTROL] + +disable= + attribute-defined-outside-init, + bad-continuation, + bad-mcs-classmethod-argument, + bare-except, + broad-except, + duplicate-bases, + duplicate-code, + eval-used, + fixme, + import-error, + import-self, + inconsistent-return-statements, + invalid-name, + misplaced-comparison-constant, + missing-docstring, + no-else-return, + no-member, + no-self-argument, + no-self-use, + no-staticmethod-decorator, + not-callable, + protected-access, + redefined-outer-name, + too-few-public-methods, + too-many-arguments, + too-many-branches, + too-many-instance-attributes, + too-many-lines, + too-many-locals, + too-many-nested-blocks, + too-many-public-methods, + too-many-statements, + wrong-import-position, + wrong-import-order, + ungrouped-imports, + unused-argument, diff --git a/appveyor.yml b/appveyor.yml index b88d868d..d7824b8e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,9 +17,6 @@ matrix: init: SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" install: - pip install tox - # Convert from Linux to Windows style paths to work around: - # https://github.com/landscapeio/prospector/issues/203 - - sed -i "s_/_\\\_g" .prospector.yaml build: off test_script: tox cache: diff --git a/tox.ini b/tox.ini index 1403abe4..89f576d4 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,21 @@ deps = py{34,35,36,36-dev,37}: aiohttp [testenv:lint] -commands = prospector +commands = + pylint -j0 \ + gunicorn \ + tests/test_arbiter.py \ + tests/test_config.py \ + tests/test_gaiohttp.py \ + tests/test_http.py \ + tests/test_invalid_requests.py \ + tests/test_logger.py \ + tests/test_pidfile.py \ + tests/test_sock.py \ + tests/test_ssl.py \ + tests/test_statsd.py \ + tests/test_systemd.py \ + tests/test_util.py \ + tests/test_valid_requests.py deps = - prospector + pylint