Use flake8 and hacking instead of pep8 for Python syntax checks
All new findings of flake8 and hacking are ignored for the moment to only change the used tool with this change. Ignored checks should be enabled in the future. Change-Id: I041f7d1427b897692506b2041b8cc50a40d97cc5
This commit is contained in:
parent
38bcdb2491
commit
917d2af7d8
17
tox.ini
17
tox.ini
|
@ -16,11 +16,8 @@ sitepackages = True
|
|||
downloadcache = ~/cache/pip
|
||||
|
||||
[testenv:pep8]
|
||||
deps=pep8==1.2
|
||||
commands = pep8 --exclude=*.pyc --repeat --show-source \
|
||||
packstack/modules packstack/plugins tests setup.py \
|
||||
packstack/version.py
|
||||
|
||||
deps=hacking>=0.9.5,<0.10
|
||||
commands = flake8
|
||||
|
||||
[testenv:cover]
|
||||
setenv = NOSE_WITH_COVERAGE=1
|
||||
|
@ -30,4 +27,12 @@ commands = {posargs}
|
|||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
|
||||
[flake8]
|
||||
# H803 skipped on purpose per list discussion.
|
||||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
#
|
||||
# All other checks should be enabled in the future.
|
||||
ignore = E123,E125,H803,E128,F403,F821,E127,F811,E265,F401,F841,E228,E129,E231,E501,E222,E211,E302,E272,E111,E502,E202,W601,E271,E721,E225,E712,E261,E131,E126,E303,E711,E241,E713,E121,E122,E401,H402,H302,H303,H304,H301,H306,H234,H405,H404,H904,H201,H305,H307,H501,H102,H233,H101,H233,H401,H232
|
||||
show-source = True
|
||||
exclude=.venv,.git,.tox
|
||||
|
|
Loading…
Reference in New Issue