diff options
author | Joshua Harlow <harlowja@gmail.com> | 2016-05-12 14:25:32 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2016-05-12 14:25:32 -0700 |
commit | 78cbc764486060928541b9dee6ce5779e622d1fa (patch) | |
tree | 48a886ea0a9857ce353eebe504048e656e1c6e92 /tox.ini | |
parent | 690bdce9a73ec6d00b4eebbbca31cc527e7b2fce (diff) | |
parent | 811f7b5b3c4590ee4a16662db37b1f37541d9822 (diff) | |
download | vyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.tar.gz vyos-cloud-init-78cbc764486060928541b9dee6ce5779e622d1fa.zip |
Enable flake8 and fix a large amount of reported issues
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = py27,py3,pyflakes +envlist = py27,py3,flake8 recreate = True [testenv] @@ -10,10 +10,9 @@ deps = -r{toxinidir}/test-requirements.txt [testenv:py3] basepython = python3 -[testenv:pyflakes] +[testenv:flake8] basepython = python3 -commands = {envpython} -m pyflakes {posargs:cloudinit/ tests/ tools/} - {envpython} -m pep8 {posargs:cloudinit/ tests/ tools/} +commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/} # https://github.com/gabrielfalcao/HTTPretty/issues/223 setenv = @@ -30,3 +29,7 @@ deps = pyflakes setenv = LC_ALL = C + +[flake8] +ignore=H404,H405,H105,H301,H104,H403,H101 +exclude = .venv,.tox,dist,doc,*egg,.git,build,tools |