-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (56 loc) · 1.69 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
[tox]
envlist = unittest, format, prospector, bandit, py{311,312,313}, markdown
# Tell tox to not require a setup.py file
skipsdist = True
[testenv]; This is called py312 in envlist
ignore_outcome = true
description = This is a live test against the API edrisobaric
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
# See also config file pytest.ini
commands = python3 ./sedr/__init__.py
[testenv:unittest]
description = Unit tests
change_dir = sedr
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = python -m unittest -v test_util test_init
[testenv:prospector]
description = Run static analysis using prospector, but dont fail on errors
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = prospector --no-autodetect \
--doc-warnings \
--test-warnings \
--die-on-tool-error \
--zero-exit \
{toxinidir}/sedr/
[testenv:format]
ignore_outcome = true
description = Fix code style
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = ruff format {toxinidir}/sedr
[testenv:mypy]
ignore_outcome = true
description = Check typing TODO
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = mypy --follow-imports skip {toxinidir}/sedr
[testenv:bandit]
description = Check for security issues
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = bandit -r --ini .bandit {toxinidir}/sedr/
[testenv:markdown]
ignore_outcome = true
description = Lint README.md
commands = pymarkdown scan README.md
deps =
-r requirements-dev.txt