-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
70 lines (60 loc) · 1.31 KB
/
Copy pathtox.ini
File metadata and controls
70 lines (60 loc) · 1.31 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
66
67
68
69
70
[tox]
envlist = py38,py39,py310,py311,py312,lint,type,docs
[testenv]
deps =
pytest>=7.0.0
pytest-cov>=3.0.0
pytest-xdist>=2.5.0
extras = dev
commands =
pytest tests/ -v --cov=src/identifiability_diagnostic --cov-report=term-missing
[testenv:lint]
basepython = python3.10
commands =
flake8 src tests --max-line-length=100 --count
black --check src tests
isort --check-only src tests
[testenv:format]
basepython = python3.10
commands =
black src tests
isort src tests
[testenv:type]
basepython = python3.10
commands =
mypy src --ignore-missing-imports
[testenv:docs]
basepython = python3.10
extras = docs
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
[testenv:security]
basepython = python3.10
commands =
bandit -r src -v
safety check
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310,lint,type
3.11: py311
3.12: py312
[pytest]
testpaths = tests
addopts = --strict-markers --tb=short -v
markers =
unit: Unit tests
integration: Integration tests
slow: Slow tests
[coverage:run]
branch = True
source = src/identifiability_diagnostic
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING: