forked from containerbuildsystem/dockerfile-parse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (33 loc) · 752 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
[tox]
envlist = bandit,pylint,python3.6,python3.7,python3.8,python3.9,python3.10,python3.11
[gh-actions]
python =
3.6: python3.6
3.7: python3.7
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
[testenv]
deps =
-rtests/requirements.txt
commands =
coverage run \
--source=dockerfile_parse \
-m pytest tests \
-ra \
--color=auto \
--html=__pytest_reports/dfp-unit-tests.html \
--self-contained-html
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit-baseline -r dockerfile_parse -ll -ii
[testenv:pylint]
deps =
pylint
-rtests/requirements.txt # for linting tests
commands =
python3 -m pylint dockerfile_parse tests