-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
tox.ini
35 lines (30 loc) · 757 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
[tox]
envlist = py312, docs, ruff-format, ruff-lint, mypy
skipsdist = true
[testenv]
allowlist_externals = poetry
setenv =
DJANGO_SECRET_KEY=test-only-s3cret
commands =
poetry install
poetry run python -m pytest \
--basetemp={envtmpdir} \
--cov=comics --cov-report=term-missing \
{posargs}
[testenv:docs]
changedir = docs
commands =
python -m pip install -r requirements.txt
python -m sphinx -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:ruff-format]
commands =
poetry install
poetry run python -m ruff format --check
[testenv:ruff-lint]
commands =
poetry install
poetry run python -m ruff check
[testenv:mypy]
commands =
poetry install
poetry run python -m mypy comics