-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
49 lines (42 loc) · 966 Bytes
/
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
[tox]
envlist = flake8, ci, all-tests, coverage
[testenv]
set_env = PYTHONPATH=.
[testenv:flake8]
deps = flake8
commands = flake8 SCAutolib/ test/ setup.py
[testenv:ci]
deps =
-rrequirements.txt
pytest
pytest-env
commands = pytest test/ -sv -m "not ipa and not service_restart" {posargs}
[testenv:all-tests]
deps =
{[testenv:ci]deps}
commands = pytest test/ {posargs}
[testenv:coverage]
deps =
{[testenv:all-tests]deps}
pytest-cov
commands =
pip install -e .
pytest --cov-report html:coverage --cov-report term --cov=SCAutolib test/ {posargs}
[flake8]
exclude =
.git,
__pycache__,
SCAutolib/templates
max-complexity = 10
max-line-length = 81
ignore =
# Ignore 'value maybe be undefined'
F405,
# Ignore warning for using * in import
F403,
# Enable bare except statement
E722,
# Ignore too complex functions
C901,
# Ignore invalid escape sequence for regular expressions
W605