-
Notifications
You must be signed in to change notification settings - Fork 66
/
tox.ini
85 lines (73 loc) · 1.37 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tox]
envlist = lint,test
[pytest]
testpaths = tests
[coverage:run]
source = ploigos_step_runner
parallel = True
omit =
*/ploigos_step_runner/version.py
[coverage:paths]
source =
src/ploigos_step_runner
*/site-packages/ploigos_step_runner
[coverage:report]
show_missing = True
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# ignore the auto generated version file
version = '.*'
[testenv]
passenv =
CI
CODECOV_*
GITHUB_*
[testenv:clean]
skip_install = True
deps =
coverage
commands =
coverage erase
[testenv:test]
deps =
pytest
pytest-cov
testfixtures
mock
commands =
python -m pytest --cov --cov-report=term-missing --cov-report=xml
[testenv:report]
skip_install = True
deps =
coverage
commands =
coverage report --fail-under=100
[testenv:lint]
deps =
pylint
flake8
commands =
python -m pylint --rcfile=setup.cfg src/
flake8 src/ --count --select=E9,F63,F7,F82 --show-source --statistics
[testenv:bandit]
deps =
bandit
commands =
bandit -r src/ # TODO: Fix Bandit test results!
[testenv:docs]
deps =
pdoc3
commands =
pdoc3 --html --output-dir pdoc3-html src/ploigos_step_runner/ --force
[testenv:build]
basepython = python3
deps =
setuptools
wheel
build
allowlist_externals =
rm
commands =
rm -rf dist
python -m build --outdir dist .