-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
52 lines (46 loc) · 1.32 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
[tox]
envlist = py{310,311,312}, ruffcheck, #typing, bandit # ruffformat
isolated_build = true
skip_missing_interpreters = true
[testenv]; This is called py312 in envlist
description = Run pytest, coverage
deps =
coverage
pytest
commands =
coverage run --source=bris -m pytest
coverage report --omit='.tox/*'
parallel_show_output = true
[testenv:prospector]
description = Run static analysis using prospector, dont fail on errors
ignore_outcome = true
deps = prospector
commands = prospector --no-autodetect \
--test-warnings \
--die-on-tool-error \
{toxinidir}/bris
[testenv:ruffformat]
description = Run ruff format, a Python formatter like black
deps = ruff
skip_install = true
commands = ruff format
[testenv:ruffcheck]
description = Run ruff check, a Python linter, dont fail on errors
ignore_outcome = true
deps = ruff
skip_install = true
commands = ruff check
[testenv:typing]
description = Check typing with mypy, dont fail on errors
ignore_outcome = true
deps =
mypy
types-PyYAML
skip_install = true
commands = mypy --install-types --ignore-missing-imports bris
[testenv:bandit]
description = Check for security issues, dont fail on errors. Ignoring asserts for now.
ignore_outcome = true
deps = bandit
skip_install = true
commands = bandit --recursive --ini .bandit.ini bris