-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
69 lines (60 loc) · 1.07 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
[tox]
envlist =
clean
py{312,311,310}
black
ruff
mypy
codespell
refurb
coverage
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
pytest
pytest-cov
pytest-mock
watchdog
depends =
{py312,py311,py310}: clean
coverage: py312,py311,py310
commands = pytest --cov=. --cov-append
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage report --fail-under=75
; coverage html
; coverage lcov
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:black]
deps = black
skip_install = true
commands = black --check --diff --color .
[testenv:ruff]
deps = ruff
skip_install = true
commands = ruff check --no-fix .
[testenv:mypy]
deps =
pytest
pytest-mock
mypy
types-toml
skip_install = true
commands = mypy --install-types --non-interactive src/poetry_plugin_upgrade
[testenv:codespell]
deps = codespell
skip_install = true
commands = codespell poetry_plugin_upgrade
[testenv:refurb]
deps = refurb
skip_install = true
commands = refurb .