Merge "Cleanup in running pep8 tests"
This commit is contained in:
@@ -180,4 +180,4 @@ def from_string(s):
|
||||
if len(codes) > 0:
|
||||
scancodes.append(codes)
|
||||
|
||||
return scancodes
|
||||
return scancodes
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
flake8 --ignore=H302,H802 --show-source ./
|
||||
|
||||
tox -v
|
||||
|
||||
16
tox.ini
16
tox.ini
@@ -5,16 +5,20 @@
|
||||
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = flake8
|
||||
envlist = pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv:pep8]
|
||||
deps = hacking==0.10.1
|
||||
usedevelop = False
|
||||
commands =
|
||||
flake8
|
||||
|
||||
[flake8]
|
||||
ignore = H234,H302,H802
|
||||
# H238 old style class declaration, use new style (inherit from `object`)
|
||||
# H234 assertEquals is deprecated, use assertEqual
|
||||
ignore = H234,H238
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
|
||||
show-pep8 = True
|
||||
show-source = True
|
||||
count = True
|
||||
|
||||
[testenv:flake8]
|
||||
deps = hacking==0.9
|
||||
commands = flake8
|
||||
|
||||
Reference in New Issue
Block a user