-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (51 loc) · 1.21 KB
/
Copy pathtox.ini
File metadata and controls
56 lines (51 loc) · 1.21 KB
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
[tox]
envlist =
py310
py311
py312
py313
py314
py315
docs
ruff
codespell
; mypy is intentionally excluded: 11 non-gating precision errors are
; documented (see PR 4); it stays a local-only convenience env.
skip_missing_interpreters = True
[testenv]
deps =
-r{toxinidir}/tests/requirements.txt
pyright
commands =
pyright
py.test --cov progressbar --cov-report=html --cov-report=term-missing --cov-report=xml --cov-config=./pyproject.toml --no-cov-on-fail --basetemp="{envtmpdir}" --confcutdir=.. {posargs}
skip_install = true
[testenv:mypy]
changedir =
basepython = python3
deps = mypy
commands = mypy {toxinidir}/progressbar
[testenv:docs]
changedir =
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
allowlist_externals =
rm
mkdir
commands =
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -e -o docs/ progressbar */os_specific/*
rm -f docs/modules.rst
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
[testenv:ruff]
commands =
ruff check
ruff format --check
deps = ruff
skip_install = true
[testenv:codespell]
changedir = {toxinidir}
commands = codespell .
deps = codespell
skip_install = true