-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (36 loc) · 913 Bytes
/
tox.ini
File metadata and controls
41 lines (36 loc) · 913 Bytes
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
[tox]
envlist = py312, py313, coverage, docs, lint
skip_missing_interpreters = true
recreate = true
parallel = auto
[testenv]
deps =
pytest
pytest-cov
commands = pytest --cov=echopop --cov-report=term --cov-report=html
install_command = pip install --cache-dir={env:TOX_PIP_CACHE_DIR:.tox/.cache} {opts} {packages}
[testenv:py311]
venv = fresh_py311
allowlist_externals =
pytest
pytest-cov
deps =
python-dateutil
commands = pytest --cov=echopop --cov-report=term --cov-report=html
install_command = pip install --cache-dir={env:TOX_PIP_CACHE_DIR:.tox/.cache} {opts} {packages}
[testenv:docs]
deps =
-r ./docs/requirements.txt
commands =
jupyter-book build ./docs
[testenv:lint]
deps = pre-commit
commands = pre-commit run --all-files
[testenv:coverage]
description = Run tests with coverage
skip_install = true
deps =
coverage
commands =
coverage report
coverage html