-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
68 lines (59 loc) · 1.22 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
[tox]
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
envlist = py{3.7,3.8,3.9,3.10,3.11},lint
isolated_build = True
[testenv]
skip_install = true
deps =
pytest
coverage
freezegun
commands =
coverage run -m pytest {posargs}
[testenv:py{3.9,3.10,3.11}]
commands =
{[testenv]commands}
coverage xml
[testenv:py{3.7,3.8}]
commands =
{[testenv]commands}
coverage xml
[testenv:ruff]
skip_install = true
deps = ruff
commands = ruff check python_eol/ tests/
[testenv:black]
skip_install = true
deps = black
commands = black --check python_eol/ tests/
[testenv:flake8]
skip_install = true
deps = flake8
max-line-length = 88
commands = flake8 python_eol/ tests/
[testenv:mypy]
skip_install = true
deps =
mypy
types-setuptools
types-freezegun
pytest
commands = mypy python_eol/ tests/
[testenv:yamlfix]
skip_install = true
deps = yamlfix
commands = yamlfix .
[testenv:lint]
skip_install = true
deps =
{[testenv:flake8]deps}
{[testenv:ruff]deps}
{[testenv:black]deps}
{[testenv:mypy]deps}
{[testenv:yamlfix]deps}
commands =
{[testenv:flake8]commands}
{[testenv:ruff]commands}
{[testenv:black]commands}
{[testenv:mypy]commands}
{[testenv:yamlfix]commands}