-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (33 loc) · 697 Bytes
/
tox.ini
File metadata and controls
37 lines (33 loc) · 697 Bytes
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
[tox]
env_list = lint, sast, verify-lock, py{38, 39, 310, 311}
[testenv]
description = Run unit tests with Pytest
extras =
tests
commands =
pytest --cov={tox_root}/drheader --cov-fail-under=80 {posargs}
[testenv:lint]
description = Run lint scan with Ruff
skip_install = true
extras =
pipelines
commands =
ruff check .
allowlist_externals =
ruff
[testenv:sast]
description = Run SAST scan with Bandit
skip_install = true
extras =
pipelines
commands =
ruff check ./drheader --select S
allowlist_externals =
ruff
[testenv:verify-lock]
description = Verify poetry.lock is up to date
skip_install = true
commands =
poetry check
allowlist_externals =
poetry