Add tox -elinters

This is the entry point for openstack gate jobs.

Change-Id: Icbebabf5ea439ef0ef20cdbda41fb9adc82965d1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-08-16 14:40:13 -04:00
parent 0637c7da4b
commit f05eadea0d
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,7 @@
hacking<0.11,>=0.10.0
ansible-lint
coverage>=3.6
python-subunit>=0.0.18
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2

View File

@ -18,6 +18,13 @@ commands = python setup.py test
[testenv:common-constraints]
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
[testenv:linters]
whitelist_externals = bash
commands =
flake8
bash -c "cd ansible; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint"
[testenv:pep8]
commands = flake8 {posargs} --exclude=ansible