Adds linters tox env and fix .gitreview
Change-Id: I95f29018d7e119349631c4dc356b20231fcc28fc
This commit is contained in:
parent
24c7fae07a
commit
edff0304c8
|
@ -1,4 +1,4 @@
|
||||||
[gerrit]
|
[gerrit]
|
||||||
host=review.fuel-infra.org
|
host=review.openstack.org
|
||||||
port=29418
|
port=29418
|
||||||
project=nextgen/nextgen-specs.git
|
project=openstack/fuel-ccp-specs.git
|
||||||
|
|
13
tox.ini
13
tox.ini
|
@ -1,13 +1,13 @@
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
envlist = docs,py27,pep8
|
envlist = docs,py27,pep8,linters
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} {packages}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = find
|
whitelist_externals = find
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
|
@ -22,10 +22,17 @@ commands =
|
||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
|
|
||||||
|
[testenv:linters]
|
||||||
|
commands =
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
|
python setup.py build_sphinx
|
||||||
|
flake8 {posargs}
|
||||||
|
python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E128
|
ignore = E128
|
||||||
exclude = .venv,.git,.tox,doc,.eggs
|
exclude = .venv,.git,.tox,doc,.eggs
|
||||||
|
|
Loading…
Reference in New Issue