Integrate prospector into Travis CI

Closes #947
This commit is contained in:
Berker Peksag 2017-02-06 07:18:03 +03:00
parent 9b2f014eec
commit 461e186f5b
3 changed files with 38 additions and 1 deletions

31
.prospector.yaml Normal file
View File

@ -0,0 +1,31 @@
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
pep8:
disable:
- E126
- E128
- E129
- E302
- E501
pyflakes:
disable:
# Redefinition of unused $X from line $LINE
- F811
# Access to a protected member $X of a client class
- W0212
mccabe:
run: false

View File

@ -16,6 +16,8 @@ matrix:
env: TOXENV=py36-dev
- python: nightly
env: TOXENV=py37
- python: 3.5
env: TOXENV=lint
allow_failures:
- env: TOXENV=py36-dev
- env: TOXENV=py37

View File

@ -1,5 +1,5 @@
[tox]
envlist = py26, py27, py34, py35, py36, py36-dev, py37, pypy
envlist = py26, py27, py34, py35, py36, py36-dev, py37, pypy, lint
skipsdist = True
[testenv]
@ -10,3 +10,7 @@ deps =
py26: unittest2
py{26,27},pypy: mock
py{34,35,36,36-dev,37}: aiohttp
[testenv:lint]
commands = prospector
deps = prospector