-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (62 loc) · 1.2 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
[tox]
envlist = py3{7,8,9,10,11}-test
skip_missing_interpreters = True
isolated_build = True
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:isort]
deps = isort
commands =
isort HtmlTemplateParser
isort tests
skip_install: True
[testenv:black]
deps = black
commands =
black HtmlTemplateParser
black tests
skip_install: True
[testenv:lint]
deps =
reformat
flake8
flake8-bugbear
flake8-builtins
pep8-naming
flake8-comprehensions
flake8-bandit
flake8-pytest-style
flake8-print
flake8-simplify
flake8-variables-names
pygments
black
pylint
mypy
types-PyYAML
commands =
flake8 HtmlTemplateParser
black --fast --check HtmlTemplateParser
pylint HtmlTemplateParser
mypy HtmlTemplateParser
flake8 tests
black --fast --check tests
pylint tests
mypy tests
skip_install: true
[testenv]
deps =
pytest
pytest-cov
pytest-xdist
coverage
commands =
pytest --cov=HtmlTemplateParser --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:} -n auto --dist loadgroup
skip_install: false
[testenv:test-fast]
deps =
pytest
pytest-xdist
commands =
pytest -n 4
skip_install: false