barbican/tox.ini
John Vrbanac a7d2e84507 Excluding the docs target folder from flake8
Artifacts of the docbook build creates a target folder that will
cause the pep8 tox job to complain about the build artifacts
a bunch of failures.

Change-Id: I4cf22876504d6014ece74e58877ba8ced13f2260
2014-07-01 09:37:03 -05:00

26 lines
654 B
INI

[tox]
envlist = pep8,py26,py27
[testenv]
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage
coverage combine
coverage report -m
[testenv:coverage]
commands = coverage html {posargs:--include="*barbican*"}
[testenv:pep8]
sitepackages = False
commands = flake8 {posargs}
[flake8]
# E711 ignored because of sqlalchemy override of == None
ignore = E711
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*openstack/common,contrib,
functionaltests,*alembic_migrations/versions,*docs/target