Skip to content
Snippets Groups Projects
Commit 160d1638 authored by Borne Mace's avatar Borne Mace
Browse files

Enable pep8 tests

Change-Id: I476c335b60d3195a2381a91ad05d8f64f62190d0
Partially-Implements: blueprint enable-flake8
parent 9b9923fa
No related branches found
No related tags found
No related merge requests found
hacking>=0.10.0
oslo.log>=1.0.0 # Apache-2.0
oslotest>=1.5.1 # Apache-2.0
PyYAML
......
[tox]
minversion = 1.6
skipsdist = True
envlist = functional
envlist = functional,pep8
[testenv]
install_command = pip install {opts} {packages}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
deps = PyYAML
commands =
{toxinidir}/tools/validate-all-json.sh
{toxinidir}/tools/validate-all-yaml.sh
{toxinidir}/tools/validate-all-maintainer.sh
{toxinidir}/tools/validate-links.sh
{toxinidir}/tools/validate-min-env-vars.sh
flake8
[testenv:validate-contents]
deps = PyYAML
commands =
{toxinidir}/tools/validate-all-json.sh
{toxinidir}/tools/validate-all-yaml.sh
{toxinidir}/tools/validate-all-maintainer.sh
{toxinidir}/tools/validate-links.sh
{toxinidir}/tools/validate-min-env-vars.sh
[testenv:bashate]
deps = bashate
......@@ -35,7 +37,6 @@ whitelist_externals = bash
commands = bash -c tests/setup_gate.sh
[testenv:images]
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
bash
sudo
......@@ -53,11 +54,13 @@ commands =
# tools/test-deploy
[testenv:functional]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = find
bash
commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
testr run ^(?!test_images).*
[flake8]
show-source = True
exclude=.git,.tox,doc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment