Use prospector with tox

This commit is contained in:
Aleksi Häkli 2018-04-20 23:42:34 +03:00
parent 6a07ca2dc7
commit 0191053f86
3 changed files with 17 additions and 0 deletions

14
.prospector.yaml Normal file
View file

@ -0,0 +1,14 @@
ignore-paths:
- docs
- axes/migrations
pep8:
options:
max-line-length: 119
pyflakes:
disable:
- F401
dodgy:
run: false

View file

@ -1,3 +1,4 @@
django django
prospector
sphinx-rtd-theme sphinx-rtd-theme
-e . -e .

View file

@ -12,6 +12,7 @@ deps =
django-111: django>=1.11,<2.0 django-111: django>=1.11,<2.0
django-20: django>=2.0,<2.1 django-20: django>=2.0,<2.1
django-master: https://github.com/django/django/archive/master.tar.gz django-master: https://github.com/django/django/archive/master.tar.gz
prospector
py27: mock py27: mock
usedevelop = True usedevelop = True
ignore_outcome = ignore_outcome =
@ -20,5 +21,6 @@ commands =
coverage run -a --source=axes runtests.py -v2 coverage run -a --source=axes runtests.py -v2
coverage run -a --source=axes runtests.py -v2 cache coverage run -a --source=axes runtests.py -v2 cache
coverage report coverage report
prospector --zero-exit
setenv = setenv =
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1