-
Notifications
You must be signed in to change notification settings - Fork 37
/
tox.ini
70 lines (63 loc) · 1.4 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
64
65
66
67
68
69
70
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py36,py37,py38,py39,pep8,pylint
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
OS_TEST_PATH=./PyU4V/tests/unit_tests/
deps=
python-subunit
testtools
mock
stestr
pytest
commands=
find . -ignore_readdir_race -type f -name "*.pyc" -delete
stestr run {posargs}
stestr slowest
whitelist_externals =
python
find
[testenv:ci]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=180
OS_TEST_PATH=./PyU4V/tests/ci_tests/
deps=
python-subunit
testtools
mock
stestr
pytest
commands=
find . -ignore_readdir_race -type f -name "*.pyc" -delete
stestr run {posargs}
stestr slowest
whitelist_externals =
python
find
[testenv:pep8]
basepython = python3
commands =
flake8 {posargs} .
deps =
flake8
pep8-naming
pydocstyle
[flake8]
ignore = N801,N802,N803,N806,N812,N818,W503
exclude = .git,.venv,.tox,dist,doc/ext,*egg,build, generate_functions.py
[testenv:pylint]
basepython = python3
deps =
pylint
commands =
pylint -j 4 --verbose --rcfile=.pylintrc PyU4V
whitelist_externals =
find