Skip to content

Commit 60caeea

Browse files
author
Gitar
committed
Checkpoint AFTER step 18 - Rule 19
Timestamp: 2025-06-02 19:31:02.051 Step ID: 18 Title: Rule 19
1 parent 7fc2db8 commit 60caeea

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

tox.ini

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[tox]
2+
envlist = py310, py311, py312, lint, mypy, docs
3+
isolated_build = true
4+
minversion = 4.0
5+
6+
[gh-actions]
7+
python =
8+
3.10: py310
9+
3.11: py311
10+
3.12: py312
11+
12+
[testenv]
13+
deps =
14+
pytest>=7.0
15+
pytest-asyncio
16+
pytest-cov
17+
pytest-mock
18+
extras = test
19+
commands =
20+
pytest {posargs:tests} -v --cov --cov-report=term-missing
21+
22+
[testenv:py310]
23+
basepython = python3.10
24+
deps = {[testenv]deps}
25+
extras = {[testenv]extras}
26+
commands = {[testenv]commands}
27+
28+
[testenv:py311]
29+
basepython = python3.11
30+
deps = {[testenv]deps}
31+
extras = {[testenv]extras}
32+
commands = {[testenv]commands}
33+
34+
[testenv:py312]
35+
basepython = python3.12
36+
deps = {[testenv]deps}
37+
extras = {[testenv]extras}
38+
commands = {[testenv]commands}
39+
40+
[testenv:lint]
41+
basepython = python3.10
42+
deps =
43+
ruff
44+
black
45+
isort
46+
commands =
47+
ruff check .
48+
black --check .
49+
isort --check-only .
50+
51+
[testenv:mypy]
52+
basepython = python3.10
53+
deps =
54+
mypy
55+
types-requests
56+
types-PyYAML
57+
commands =
58+
mypy --ignore-missing-imports .
59+
60+
[testenv:docs]
61+
basepython = python3.10
62+
deps =
63+
sphinx
64+
sphinx-rtd-theme
65+
commands =
66+
sphinx-build -b html docs docs/_build/html
67+
68+
[testenv:clean]
69+
deps = coverage
70+
skip_install = true
71+
commands = coverage erase

0 commit comments

Comments
 (0)