mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
b07532be75
commit
249783567f
@ -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
|
||||
52
.pylintrc
Normal file
52
.pylintrc
Normal file
@ -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,
|
||||
@ -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:
|
||||
|
||||
19
tox.ini
19
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user