-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
41 lines (36 loc) · 1.14 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
[tox]
envlist = py312, black, prospector, mypy, bandit
[testenv]
description = install pytest in the virtualenv where commands will be executed
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = python3 -m unittest fingr_test.py
[testenv:prospector]
ignore_outcome = true
description = Run static analysis using prospector
deps = -r{toxinidir}/requirements.txt
allowlist_externals = prospector
commands = prospector --no-autodetect \
--doc-warnings \
--die-on-tool-error \
--test-warnings \
{toxinidir}/fingr.py
[testenv:black]
description = Check code style
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = black --check {toxinidir}/fingr.py
[testenv:mypy]
ignore_outcome = true
description = Check typing
allowlist_externals = mypy
deps = -r{toxinidir}/requirements.txt
commands = mypy --follow-imports skip {toxinidir}/fingr.py
[testenv:bandit]
ignore_outcome = true
description = Check for security issues
allowlist_externals = bandit
deps = -r{toxinidir}/requirements.txt
commands = bandit {toxinidir}/fingr.py