forked from econchick/interrogate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (54 loc) · 1.28 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
min_version = 4
env_list =
py3{8,9,10,11,12}{,-png},
docs,
lint,
manifest,
coverage-report
[testenv]
package = wheel
wheel_build_env = .pkg
pass_env =
NO_COLOR
FORCE_COLOR
extras =
tests
png: png
commands = coverage run -m pytest {posargs}
[testenv:lint]
base_python = python3.10
deps = pre-commit
commands = pre-commit run --all-files
[testenv:docs]
# Keep base_python in-sync with .readthedocs.yaml & main.yml/docs
base_python = python3.11
extras = docs
commands =
interrogate --config {toxinidir}/pyproject.toml src tests
sphinx-build -n -T -b html -d {envtmpdir}/doctrees docs docs/_build/html
[testenv:manifest]
base_python = python3.11
deps = check-manifest
skip_install = true
commands = check-manifest
[testenv:generate-badge]
base_python = python3.11
extras = png
commands =
interrogate --config {toxinidir}/pyproject.toml --generate-badge {toxinidir}/docs/_static src tests
[testenv:coverage-report]
base_python = python3.11
depends = py311
skip_install = true
deps = coverage[toml]>=5.4
commands =
coverage combine
coverage report
; tool-specific config below
[flake8]
show-source = true
max-line-length = 80
exclude = .venv,.tox,.git,dist,doc,*.egg,build,tests/functional/sample
# comply with black
ignore = E203, E231, W503