50 lines
1.5 KiB
INI
50 lines
1.5 KiB
INI
|
[tox]
|
||
|
minversion = 3.9.0
|
||
|
envlist = policy-functional
|
||
|
skipsdist = True
|
||
|
ignore_basepython_conflict = True
|
||
|
|
||
|
[testenv]
|
||
|
usedevelop = True
|
||
|
skip_install = True
|
||
|
basepython = python3
|
||
|
setenv =
|
||
|
VIRTUAL_ENV={envdir}
|
||
|
LANG=en_US.UTF-8
|
||
|
LANGUAGE=en_US:en
|
||
|
LC_ALL=C
|
||
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:false}
|
||
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
||
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
||
|
deps =
|
||
|
-r{toxinidir}/test-requirements.txt
|
||
|
|
||
|
|
||
|
[testenv:policy-functional]
|
||
|
commands = pytest --collect-only tests/
|
||
|
|
||
|
[testenv:pep8]
|
||
|
deps =
|
||
|
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
||
|
flake8-import-order>=0.17.1 # LGPLv3
|
||
|
pycodestyle>=2.0.0,<2.7.0 # MIT
|
||
|
Pygments>=2.2.0 # BSD
|
||
|
doc8>=0.8.0 # Apache 2.0
|
||
|
commands =
|
||
|
flake8 {posargs}
|
||
|
doc8 doc/source README.rst
|
||
|
|
||
|
[flake8]
|
||
|
application-import-names = tests
|
||
|
# The following are ignored on purpose. It's not super worth it to fix them.
|
||
|
# However, if you feel strongly about it, patches will be accepted to fix them
|
||
|
# if they fix ALL of the occurances of one and only one of them.
|
||
|
# H238 New Style Classes are the default in Python3
|
||
|
# H4 Are about docstrings and there's just a huge pile of pre-existing issues.
|
||
|
# W503 Is supposed to be off by default but in the latest pycodestyle isn't.
|
||
|
# Also, both openstacksdk and Donald Knuth disagree with the rule. Line
|
||
|
# breaks should occur before the binary operator for readability.
|
||
|
ignore = H238,H4,W503
|
||
|
import-order-style = pep8
|
||
|
show-source = True
|
||
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,openstacksdk-0.55.0
|