forked from NodeJSmith/otf-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
66 lines (61 loc) · 1.02 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
[tox]
isolated_build = true
envlist = py310, py311, lint, build
[gh-actions]
python =
3.11: py311
3.10: py310
[testenv:lint]
allowlist_externals = poetry, ruff, mkdocs
extras =
dev
docs
deps =
poetry
commands_pre =
#
commands =
poetry install --with dev
poetry run ruff check src
[testenv:docs]
allowlist_externals = poetry, ruff, mkdocs
extras =
dev
docs
deps =
poetry
commands_pre =
#
commands =
poetry install --with dev --with docs
poetry run mkdocs build
[testenv:build]
allowlist_externals = twine, poetry
extras =
dev
deps =
poetry
commands_pre =
#
commands =
poetry install --with dev
poetry build
poetry run twine check dist/*
[testenv]
allowlist_externals = poetry, pipx
passenv =
HOME
USER
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
extras =
dev
test
deps =
pipx
commands_pre =
pipx install poetry
poetry install --no-root --sync
commands =
poetry run pytest tests/ --import-mode importlib