-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
tox.ini
37 lines (31 loc) · 904 Bytes
/
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
[tox]
isolated_build = true
envlist = py39, py310, py311, py312, py313, docs, mypy, ruff-format, ruff-lint
[testenv]
allowlist_externals = poetry
commands =
poetry install --only=main,tests
poetry run python -m pytest \
--basetemp={envtmpdir} \
--cov=pykka --cov-report=term-missing \
{posargs}
[testenv:docs]
commands =
poetry install --all-extras --only=main,docs
poetry run sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:mypy]
commands =
poetry install --only=main,dev,docs,tests,mypy
poetry run mypy src tests
[testenv:pyright]
commands =
poetry install --only=main,dev,docs,tests,pyright
poetry run pyright src tests
[testenv:ruff-format]
commands =
poetry install --only=ruff
poetry run ruff format --check .
[testenv:ruff-lint]
commands =
poetry install --only=ruff
poetry run ruff check .