-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (46 loc) · 800 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
53
54
[tox]
envlist =
py39
py38
py37
py36
coverage
pre-commit
mypy
[testenv]
extras =
test
commands =
python -m pytest {posargs}
[testenv:coverage]
deps =
coverage
commands =
coverage erase
coverage run -m pytest tests
coverage report -m --fail-under=100
[testenv:pre-commit]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
deps =
mypy
commands =
mypy --strict src {posargs}
[flake8]
max-line-length = 79
ignore = E231 # clashes with black
[isort]
known_third_party = requests,xdg,pytest,setuptools
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, pre-commit, mypy, coverage
pypy3: pypy3
[coverage:run]
omit = */site-packages/*