-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (50 loc) · 1 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]
requires =
tox>=4
env_list = formatter, isort, type, flake8, pylint, py{310,311}
isolated_build = True
[testenv]
description = run unit tests
deps =
pytest
commands =
pytest {posargs}
[testenv:formatter]
description = run formatter
skip_install = true
deps =
black
isort
commands = black {posargs:src test}
isort {posargs:src test}
[testenv:formatter-check]
description = run formatter
skip_install = true
deps =
black
isort
commands = black --check {posargs:src test}
isort --check {posargs:src test}
[testenv:flake8]
description = run flake8
skip_install = true
deps =
flake8
flake8-bugbear
commands = flake8 --ignore=E501 {posargs:src test}
[testenv:pylint]
description = run pylint
deps =
pylint
commands = pylint {posargs:gpx2kml}
[testenv:type]
description = run type checks
deps =
mypy
pytest
commands =
mypy --check-untyped-defs {posargs:src test}
[gh]
python =
3.11 = formatter-check, flake8, pylint, type, py311
3.10 = py310