-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
63 lines (58 loc) · 1.72 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
skipsdist = True
envlist = pep8
usedevelop = False
skip_missing_interpreters = False
[testenv]
skip_install = True
basepython = python3
install_command = python3 -m pip install {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-azure.txt
whitelist_externals = bash
passenv = *
setenv =
VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
commands =
pytest {posargs}
[testenv:pep8]
commands =
flake8
pycodestyle
[testenv:pylint]
deps =
{[testenv]deps}
commands =
pylint --max-line-length 120 --disable=W0719, transible
[pytest]
minversion = 6.0
addopts = -ra -v --color=yes
testpaths =
transible/tests
[flake8]
# 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.
# H4 are rules for docstrings. Maybe we should clean them?
# E501,E402,H301 are ignored so we can import the existing
# modules unchanged and then clean them in subsequent patches.
ignore = W503,H4,E501,E402,H301
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,ansible_collections
# per-file-ignores =
# openstack/tests/unit/block_storage/*:H306,I100,I201,I202
# openstack/tests/unit/cloud/*:H306,I100,I201,I202
# openstack/tests/unit/clustering/*:H306,I100,I201,I202
# openstack/tests/unit/orchestration/*:H306,I100,I201,I202
# openstack/tests/unit/identity/*:H306,I100,I201,I202
# [flake8:local-plugins]
# extension =
# O300 = _hacking:assert_no_setupclass
# paths = ./openstack
[pycodestyle]
ignore = W503,H4,E501,E402,H301