-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
69 lines (61 loc) · 1.3 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
[tox]
envlist =
unittest,
quality_checks
[testenv]
basepython = python3.7
setenv =
PYTHONWARNINGS = once
PYTHONDONTWRITEBYTECODE = 1
READTHEDOCS = True
deps = .[test]
[testenv:quality_checks]
description = "Checks to ensure code quality"
commands =
flake8 --ignore=E127,E722,E402 --exclude ./visualswarm/simulation_tools,./data,./.tox .
bandit -x */test* -l -ii -r visualswarm
safety check -i 40291
[testenv:unittest]
commands = python -m pytest
[testenv:unittest_ci]
commands =
python -m pytest \
--cov-report=xml:{toxinidir}/dist/coverage.xml \
--junitxml={toxinidir}/dist/junit.xml
python -m coverage report
[coverage:run]
omit =
**/visualswarm/simulation_tools/**.py
**/visualswarm/app_simulation.py
**visualswarm/contrib/**.py
**/tests/**.py
**/data
**/env.py
[coverage:report]
fail_under = 85
skip_empty = yes
show_missing = yes
exclude_lines =
pragma: no cover
pragma: simulation no cover
except KeyboardInterrupt:
[flake8]
exclude =
.git,
.tox,
env,
__pycache__,
dist,
build,
docs,
env.py,
venv
max-line-length = 120
[pytest]
addopts =
--ff
--color=yes
--code-highlight=yes
--cov=visualswarm
python_files = tests.py test_*.py *_tests.py tests.py
junit_family = xunit2