forked from kurtmckee/dotbot-firefox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
64 lines (50 loc) · 1.11 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
[tox]
envlist =
coverage_erase
py{311, 310, 39, 38}
coverage_report
lint
mypy
min_version = 4.4.4
skip_missing_interpreters = true
isolated_build = true
[testenv:coverage_erase]
skip_install = true
deps = coverage[toml]
commands = coverage erase
[testenv]
depends =
py{311, 310, 39, 38}: coverage_erase
package = wheel
wheel_build_env = build_wheel
deps =
coverage[toml]
pyfakefs
pytest
pytest-randomly
tomli; python_version < "3.11"
commands = {envpython} -W error -m coverage run -m pytest
[testenv:coverage_report]
depends =
coverage_erase
py{311, 310, 39, 38}
skip_install = true
deps = coverage[toml]
commands =
coverage combine
coverage html --fail-under=0
coverage report
[testenv:lint]
skip_install = true
deps = pre-commit
commands =
pre-commit run --hook-stage manual --all black-check
pre-commit run --hook-stage manual --all flake8-check
pre-commit run --hook-stage manual --all isort-check
[testenv:mypy]
skip_install = true
deps = mypy==0.991
commands = {envpython} -m mypy --check .
[flake8]
max-line-length = 88
extend-ignore = E203