Adds linters tox env and fix .gitreview

Change-Id: I95f29018d7e119349631c4dc356b20231fcc28fc
This commit is contained in:
dukhlov 2016-07-19 16:25:52 +03:00
parent 24c7fae07a
commit edff0304c8
2 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
[gerrit]
host=review.fuel-infra.org
host=review.openstack.org
port=29418
project=nextgen/nextgen-specs.git
project=openstack/fuel-ccp-specs.git

13
tox.ini
View File

@ -1,13 +1,13 @@
[tox]
minversion = 1.6
envlist = docs,py27,pep8
envlist = docs,py27,pep8,linters
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
@ -22,10 +22,17 @@ commands =
python setup.py build_sphinx
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands =
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]
ignore = E128
exclude = .venv,.git,.tox,doc,.eggs