-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.68 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
[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 --url "https://edrisobaric.k8s.met.no/"
[testenv:unittest]
description = Unit tests
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = python -m unittest discover -v -s ./sedr -p "test_*.py"
[testenv:prospector]
description = Run static analysis using prospector, but dont fail on errors
ignore_outcome = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = prospector --no-autodetect \
--test-warnings \
--die-on-tool-error \
{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]
description = Check typing TODO
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = mypy --ignore-missing-imports {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 -d line-length scan README.md
deps =
-r requirements-dev.txt