6ae83ed258
This PS makes shipyard mostly pep8 compliant, with the exeption of: ./shipyard_airflow/plugins/rest_api_plugin.py which will require some rework to make compliant. Change-Id: I913f7ac696eb5558c1fed7c4f4104211bf4b5876
35 lines
1.1 KiB
INI
35 lines
1.1 KiB
INI
[tox]
|
|
envlist = py35, pep8
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv=
|
|
PYTHONWARNING=all
|
|
commands=
|
|
pytest \
|
|
{posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:bandit]
|
|
# NOTE(Bryan Strassner) ignoring airflow plugin which uses a subexec
|
|
# tests are not under the shipyard_airflow directory, not exlcuding those
|
|
commands = bandit -r shipyard_airflow -x plugins/rest_api_plugin.py -n 5
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=generator/config-generator.conf
|
|
|
|
[testenv:genpolicy]
|
|
commands = oslopolicy-sample-generator --config-file=generator/policy-generator.conf
|
|
|
|
[flake8]
|
|
# NOTE(Bryan Strassner) ignoring F841 because of the airflow example pattern
|
|
# of naming variables even if they aren't used for DAGs and Operators.
|
|
# Doing so adds readability and context in this case.
|
|
ignore = F841
|
|
# NOTE(Bryan Strassner) excluding 3rd party and generated code that is brought into the
|
|
# codebase.
|
|
exclude = *plugins/rest_api_plugin.py,*lib/python*,*egg,.git*,*.md,.tox*,alembic/env.py,build/*
|