forked from emdgroup/baybe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
64 lines (58 loc) · 1.62 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
62
63
64
[tox]
min_version = 4.9
env_list = {fulltest,coretest,lint,mypy,audit}-py{39,310,311,312}
isolated_build = True
[testenv:fulltest,fulltest-py{39,310,311,312}]
description = Run PyTest with all extra functionality
extras = test,chem,examples,simulation,onnx
passenv = CI
setenv =
SMOKE_TEST = true
BAYBE_TEST_ENV = FULLTEST
commands =
python --version
pytest -p no:warnings --cov=baybe --durations=5 {posargs}
[testenv:coretest,coretest-py{39,310,311,312}]
description = Run PyTest with core functionality
extras = test
passenv = CI
setenv =
SMOKE_TEST = true
BAYBE_TEST_ENV = CORETEST
commands =
python --version
pytest -p no:warnings --cov=baybe --durations=5 {posargs}
[testenv:lint,lint-py{39,310,311,312}]
description = Run linters and format checkers
extras = lint,examples
skip_install = True
deps = pre-commit
commands =
python --version
pre-commit run --all-files {posargs:--show-diff-on-failure}
[testenv:mypy,mypy-py{39,310,311,312}]
description = Run mypy
extras = mypy
setenv =
PYTHONPATH = {toxinidir}
commands =
python --version
mypy
[testenv:audit,audit-py{39,310,311,312}]
description = Run pip-audit
extras = dev # audit entire environment
setenv =
# Add pip-audit exceptions here, like:
# EXCLUDES=--ignore-vuln EXCEPTION_ID1 --ignore-vuln EXCEPTION_ID2 ...
commands =
python --version
pip-audit {env:EXCLUDES:}
[testenv:docs,docs-py{39,310,311,312}]
description = Build documentation
extras = docs
passenv = BAYBE_DOCS_LINKCHECK_IGNORE
setenv =
SMOKE_TEST = true
commands =
python --version
python docs/scripts/convert_code_to_documentation.py {posargs}