This repository was archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
69 lines (61 loc) · 1.39 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
65
66
67
68
69
[base]
name = psp_validation
testdeps =
pytest
NEURON-nightly
pytest_options = -vv --basetemp={envtmpdir}
[tox]
envlist =
check-version
lint
py{37,38,39,310}
minversion = 4
# ignore basepython for envs that already specify a version (py36, py37, py38...)
# but allow to enforce the python version for check-version, lint, coverage, docs
ignore_basepython_conflict = true
[testenv]
basepython=python3.10
deps =
{[base]testdeps}
commands = pytest {[base]pytest_options} tests {posargs}
setenv =
BLUECELLULAB_MOD_LIBRARY_PATH={envdir}/.neurodamus/local/
[testenv:check-packaging]
deps =
wheel
twine
commands_pre =
commands =
python setup.py sdist bdist_wheel -d {envtmpdir}/dist
twine check {envtmpdir}/dist/*
commands_post =
[testenv:lint]
deps =
ruff
commands_pre =
commands =
ruff format -v --check {[base]name} tests
ruff check {[base]name} tests
[testenv:format]
deps =
ruff
commands_pre =
commands =
ruff format {[base]name} tests
ruff check --fix {[base]name} tests
[testenv:coverage]
deps =
{[base]testdeps}
coverage
commands =
coverage run --source {[base]name} -m pytest {[base]pytest_options} tests
coverage report --show-missing
coverage xml
[testenv:docs]
changedir = doc
deps =
extras = docs
commands_pre =
# set warnings as errors using the -W sphinx option
commands = make html SPHINXOPTS=-W
allowlist_externals = make