-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (46 loc) · 1.36 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,312}, black, prospector, bandit
[testenv]
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: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:black]
description = Check code style
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = black --check {toxinidir}/sedr
[testenv:mypy]
ignore_outcome = true
description = WIP. Check typing
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:lint-md]
ignore_outcome = true
description = Lint README.md
commands = pymarkdown scan README.md
deps =
-r requirements-dev.txt