-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (49 loc) · 1.02 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
[tox]
envlist = py3{7,8,9,10,11}, flake8, isort, black, mypy, coverage
[testenv]
deps =
pytest
pytest-cov
commands = pytest --cov --cov-config=tox.ini --cov-report html
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[flake8]
ignore = B001, E722
max-line-length = 121
exclude =
*/tests
[coverage:run]
source =
uuidbase62
omit =
.tox/*
*/tests/*
[testenv:coverage]
deps = coverage
depends = py37, py38, py39, py310, py311
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine
coverage report --fail-under 70
[testenv:isort]
deps = isort
skip_install = True
commands = isort uuidbase62
[testenv:black]
deps = black
depends = isort
skip_install = True
commands = black --check --diff uuidbase62
[testenv:mypy]
deps = mypy
depends = isort, black
skip_install = True
commands = mypy --ignore-missing-imports uuidbase62
[testenv:flake8]
deps =
flake8
flake8-bugbear
depends = isort, black, mypy
skip_install = True
commands = flake8 uuidbase62