Switch to flake8
Use flake8, which lets us ignore some types of warnings. Change-Id: I0f4e3b1f0f5b2ebf77d1a7424c82a3ce7b0a597d Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
parent
3641ed6a64
commit
007c563671
@ -3,10 +3,8 @@ python:
|
||||
- "2.7"
|
||||
install:
|
||||
- pip install -r test_requirements.txt --use-mirror
|
||||
- pip install pep8 --use-mirrors
|
||||
- pip install pyflakes --use-mirrors
|
||||
- pip install flake8 --use-mirrors
|
||||
- pip install -q . --use-mirrors
|
||||
before_script:
|
||||
- pep8 --repeat --show-source --ignore=E125 --statistics --exclude=dist,doc,*egg .
|
||||
- pyflakes akanda
|
||||
- flake8 setup.py akanda
|
||||
script: nosetests -d
|
@ -1,3 +1,4 @@
|
||||
# flake8: noqa
|
||||
import base
|
||||
import firewall
|
||||
import system
|
||||
|
13
tox.ini
13
tox.ini
@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
envlist = py27,pep8,pyflakes
|
||||
envlist = py27,pep8,style
|
||||
|
||||
[testenv]
|
||||
deps = -r{toxinidir}/test_requirements.txt
|
||||
@ -18,7 +18,12 @@ setenv = NOSE_WITH_COVERAGE=1
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:pyflakes]
|
||||
deps = pyflakes
|
||||
commands = pyflakes akanda
|
||||
[testenv:style]
|
||||
deps = flake8
|
||||
commands = flake8 setup.py akanda
|
||||
|
||||
[flake8]
|
||||
show-source = True
|
||||
exclude = .tox,dist,doc,*.egg,build
|
||||
ignore = E125
|
||||
builtins = _
|
||||
|
Loading…
x
Reference in New Issue
Block a user