-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
52 lines (46 loc) · 831 Bytes
/
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
[tox]
requires =
tox>=4.2
env_list =
py
lint
[testenv]
description = Setup base environment
package = editable
[testenv:py]
description = Run pytest with coverage
extras =
test
commands =
coverage run -m pytest --doctest-glob=docs/usage.rst {tty:--color=yes} {posargs}
[testenv:lint]
description = Lint codebase by running pre-commit.
extras =
lint
commands =
pre-commit run --all-files
[testenv:coverage-report]
description = Compile coverage from each test run.
extras =
test
commands =
coverage report
depends =
py
[testenv:docs]
description = Check docs build
extras =
docs
commands =
make docs
allowlist_externals =
make
[testenv:check-packaging]
description = Check packaging
extras =
build
docs
commands =
make check-build
allowlist_externals =
make