-
Notifications
You must be signed in to change notification settings - Fork 286
/
Copy pathtox.ini
54 lines (48 loc) · 808 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 =
black
flake8
isort
mypy
py{39,310,311,312,313,py3}
minversion = 4.11.4
[testenv]
commands =
pytest --cov=./ --cov-report=xml {posargs}
deps =
pytest
pytest-cov
setenv =
PYTHONUTF8 = 1
[testenv:black]
basepython = python3
commands = black --check --diff .
deps = black
skip_install = true
[testenv:flake8]
basepython = python3
commands = flake8
deps =
flake8
Flake8-pyproject
skip_install = true
[testenv:isort]
basepython = python3
commands = isort --check-only --diff .
deps = isort
skip_install = true
[testenv:mypy]
commands = mypy --strict html2text
deps = mypy
[testenv:pre-commit]
basepython = python3
commands =
isort --atomic .
flake8
black .
deps =
isort
flake8
Flake8-pyproject
black
skip_install = true