forked from specpulse/specpulse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
65 lines (53 loc) · 1.24 KB
/
tox.ini
File metadata and controls
65 lines (53 loc) · 1.24 KB
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
65
[tox]
envlist = py311, py312, py313, flake8, black, mypy, coverage
skip_missing_interpreters = true
[testenv]
deps = pytest
commands = pytest tests/ -v
[testenv:py311]
basepython = python3.11
[testenv:py312]
basepython = python3.12
[testenv:py313]
basepython = python3.13
[testenv:flake8]
deps = flake8
commands = flake8 specpulse/ tests/
[testenv:black]
deps = black
commands = black --check specpulse/ tests/
[testenv:mypy]
deps = mypy
commands = mypy specpulse/
[testenv:coverage]
deps =
pytest
pytest-cov
commands =
pytest tests/ --cov=specpulse --cov-report=html --cov-report=term-missing
coverage report --show-missing
[testenv:integration]
deps = pytest
commands = pytest tests/test_integration_workflow.py -v -m "integration"
[testenv:performance]
deps = pytest
commands = pytest tests/test_performance.py -v -m "performance"
[testenv:security]
deps =
bandit[toml]
safety
commands =
bandit -r specpulse/ -f json
safety check --json
[testenv:all]
deps =
{[testenv]deps}
{[testenv:flake8]deps}
{[testenv:black]deps}
{[testenv:mypy]deps}
{[testenv:coverage]deps}
commands =
{[testenv:flake8]commands}
{[testenv:black]commands}
{[testenv:mypy]commands}
{[testenv:coverage]commands}