forked from kurtmckee/feedparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
87 lines (73 loc) · 1.84 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist =
coverage_erase
py{311, 310, 39, 38, py3}{-chardet, }
coverage_report
docs
mypy
labels =
ci-test-linux = py{311, 310, 39, 38, py3}-chardet
ci-test-macos = py{311, 38}-chardet
ci-test-windows = py{311, 38}-chardet
skip_missing_interpreters = True
isolated_build = True
min_version = 4.3.5
[testenv]
description = Run the test suite ({env_name})
depends =
py{311, 310, 39, 38, py3}{-chardet, }: coverage_erase
package = wheel
wheel_build_env = build_wheel
deps =
coverage[toml]
pytest
responses
chardet: chardet
commands =
coverage run -m pytest {posargs:}
[testenv:coverage_erase]
description = Erase .coverage* files before testing
deps =
coverage[toml]
commands =
coverage erase
[testenv:coverage_report]
description = Report code coverage after testing
depends =
py{311, 310, 39, 38, py3}{-chardet, }
deps =
coverage[toml]
commands_pre =
coverage combine
coverage html --fail-under=0
commands =
coverage report
[testenv:docs]
description = Build and lint the documentation
skip_install = True
deps =
-r requirements/docs.txt
commands =
sphinx-build -EWq -j auto --keep-going docs/ build/docs/
[testenv:mypy]
description = Lint type annotations
deps =
-r requirements/mypy.txt
commands =
mypy
[testenv:update_requirements]
description = Update the requirements/*.txt files
base_python =
python3.8
setenv =
CUSTOM_COMPILE_COMMAND=tox run -e update_requirements
change_dir = {tox_root}/requirements
deps =
-r requirements/pip-tools.txt
commands =
pip-compile --allow-unsafe --resolver=backtracking --upgrade --quiet pip-tools.in
pip-compile --allow-unsafe --resolver=backtracking --upgrade --quiet docs.in
pip-compile --allow-unsafe --resolver=backtracking --upgrade --quiet mypy.in
[flake8]
max-line-length = 88
extend-ignore = E203