-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
107 lines (96 loc) · 1.8 KB
/
Copy pathtox.ini
File metadata and controls
107 lines (96 loc) · 1.8 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
min_version = 4.0
requires =
py
isolated_build = true
env_list =
lint,
type,
unit,
integration,
perf,
security,
docs,
package,
docker
[testenv]
description = "Run tests with pytest"
package = editable
extras =
test
pass_env =
HOME
USER
DEVICE
OPENAI_API_KEY
GITHUB_*
set_env =
MPLBACKEND = agg
PYTHONPATH = {toxinidir}
allowlist_externals =
pytest
docker
commands =
pytest {posargs}
[testenv:lint]
description = "Check code style and quality"
extras =
lint
commands =
ruff check healthcare_ai tests
black --check healthcare_ai tests
flake8 healthcare_ai tests
[testenv:type]
description = "Run static type checking"
extras =
lint
commands =
mypy healthcare_ai
[testenv:unit]
description = "Run unit tests"
commands =
pytest -m "not (integration or gpu or slow)" {posargs}
[testenv:integration]
description = "Run integration tests"
extras =
test
commands =
pytest -m "integration" {posargs}
[testenv:perf]
description = "Run performance benchmarks"
extras =
test
commands =
pytest -m "performance" {posargs}
[testenv:security]
description = "Run security checks"
extras =
dev
commands =
bandit -r healthcare_ai
safety check
[testenv:docs]
description = "Build documentation"
extras =
docs
commands =
sphinx-build -b html docs/source docs/build/html
[testenv:package]
description = "Build the package"
package = wheel
commands =
python -m twine check dist/*
[testenv:gpu]
description = "Run tests on GPU"
extras =
test
gpu
commands =
pytest -m "gpu" {posargs}
[testenv:docker]
description = "Run tests within a Docker container"
allowlist_externals =
docker
commands =
docker build -t openmedicine-test .
docker run openmedicine-test pytest {posargs}