-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtox.ini
More file actions
68 lines (59 loc) · 1.05 KB
/
tox.ini
File metadata and controls
68 lines (59 loc) · 1.05 KB
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]
isolated_build = True
tox_pyenv_fallback = False
envlist = py38,py310
[testenv]
usedevelop = true
deps =
-rrequirements.txt
[testenv:py36]
deps =
{[testenv]deps}
commands =
pytest -q {posargs}
[testenv:linter]
deps =
flake8
skip_install =
true
basepython =
python3
commands =
flake8 --max-line-length=120
exclude =
src/lib/app/analytics,lib/app/converters,lib/app/input_converters
[testenv:mypy]
deps=
mypy
-rrequirements.txt
skip_install =
true
basepython =
python3
commands=
mypy lib --ignore-missing-imports
exclude =
src/lib/app/analytics,lib/app/converters,lib/app/input_converters
[testenv:coverage]
deps =
{[testenv]deps}
pytest-cov==2.8.1
basepython =
python3
commands =
pytest -q --cov-report term --cov='src/' --cov-fail-under=80 {posargs}
[testenv:pre-commit]
deps =
pre-commit
skip_install =
true
basepython =
python3
commands =
pre-commit run --all-files
[testenv:type]
description = run type checks
deps =
mypy>=0.991
commands =
mypy {posargs:src tests}