-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
85 lines (67 loc) · 1.27 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
[tox]
envlist = py{37,38,39,310,311},format,lint
skip_missing_interpreters = True
isolated_build = True
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, format, lint
[testenv]
deps =
pytest
pytest-cov
coverage
commands =
pytest --cov --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:}
depends =
py{37,38,39,310,311}: clean
cov: py{37,38,39,310,311}
[testenv:clean]
skip_install: true
deps = coverage
commands = coverage erase
[testenv:cov]
skip_install: true
deps = coverage
commands =
coverage report
coverage xml
[testenv:format]
basepython = python3.9
deps =
isort
black
commands =
black RelativeToNow
isort RelativeToNow
skip_install = true
skip_gitignore = true
[testenv:lint]
basepython = python3.9
deps =
reformat
flake8
black
pylint
commands =
flake8 RelativeToNow
black --fast --check RelativeToNow
isort --check RelativeToNow
pylint RelativeToNow
skip_install = true
[flake8]
max-line-length = 99
extend-ignore = D103, F401
[black]
max_line_length = 99
quiet = true
[isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 99
quiet = true