Debian Codegraph @

tox.ini

raw
1 [tox]
2 minversion = 4.3.5
3 env_list =
4 py39
5 py310
6 py311
7 py312
8 py313
9 strict
10 coverage
11 codestyle
12 docs
13 linkcheck
14 spelling
15 isolated_build = True
16
17 [testenv]
18 description = run the tests with pytest
19 deps = pytest>=6
20 extras = test
21 commands =
22 python3 -m pytest {tty:--color=yes} --doctest-modules {posargs}
23
24 [testenv:strict]
25 commands =
26 python3 -m pytest {tty:--color=yes} -W error {posargs}
27
28 [testenv:coverage]
29 description = run coverage
30 deps =
31 pytest>=6
32 pytest-cov
33 commands =
34 python3 -m pytest {tty:--color=yes} --cov bpack --cov-report=html --cov-report=term bpack
35
36 [testenv:codestyle]
37 description = run linting
38 skip_install = true
39 deps =
40 flake8
41 pydocstyle
42 isort
43 black
44 mypy
45 changedir = {toxinidir}
46 commands =
47 python3 -m flake8 --version
48 python3 -m flake8 --count --statistics bpack
49 python3 -m pydocstyle --count bpack
50 python3 -m isort --check bpack
51 python3 -m black --check bpack
52 # python3 -m mypy --check-untyped-defs --ignore-missing-imports bpack
53 # ruff check bpack
54
55 [testenv:docs]
56 description = build docs
57 allowlist_externals = mkdir
58 changedir = docs
59 extras = bs
60 deps =
61 -r docs/requirements-docs.txt
62 commands =
63 mkdir -p _static
64 python3 -m sphinx -W -b html . _build/html
65 python3 -m sphinx -W -b doctest . _build/doctest
66
67 [testenv:linkcheck]
68 description = linkcheck
69 allowlist_externals = mkdir
70 changedir = docs
71 deps =
72 -r docs/requirements-docs.txt
73 commands =
74 mkdir -p _static
75 python3 -m sphinx -W -b linkcheck . _build/linkcheck
76
77 [testenv:spelling]
78 description = check spelling
79 allowlist_externals = mkdir
80 changedir = docs
81 deps =
82 -r docs/requirements-docs.txt
83 sphinxcontrib-spelling
84 commands =
85 mkdir -p _static
86 python3 -m sphinx -W -b spelling . _build/spelling