Debian Codegraph @

tox.ini

raw
1 [tox]
2 minversion = 4.0.0
3 envlist =
4 lint
5 docs
6 py{38,39,310,311,312,313}
7 isolated_build = True
8
9 [testenv]
10 description = Run unit-testing
11 deps =
12 poetry
13 # do not put * in passenv as it may break builds due to reduced isolation
14 passenv =
15 CI
16 GITHUB_*
17 HOME
18 PYTEST_*
19 SSH_AUTH_SOCK
20 TERM
21 setenv =
22 PYTHONDONTWRITEBYTECODE=1
23 PYTHONUNBUFFERED=1
24 commands =
25 poetry install
26 pytest --cov-report term-missing --cov=rich tests/ {posargs}
27
28 [testenv:lint]
29 description = Runs all linting tasks
30 commands_pre =
31 poetry install -vv --with lint
32 commands =
33 ; poetry install --only dev
34 # as long GHA pipelines are not configured to use tox, we should call
35 # `make` in order to make testing similar and prevent divergence.
36 make format-check
37 make typecheck
38 deps =
39 poetry
40 skip_install = true
41 allowlist_externals =
42 make
43 poetry
44
45 [testenv:docs]
46 description = Builds documentation
47 changedir = docs
48 deps =
49 -r docs/requirements.txt
50 commands =
51 sphinx-build -M html source build