-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
50 lines (47 loc) · 1.09 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
[tox]
envlist = checks,{models,consumer,commands}-{py310,py311,licenses},docs
skipsdist = True
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
allowlist_externals =
poetry
cd
{toxinidir}/tools/run-liccheck.sh
env =
SQLALCHEMY_WARN_20=1
change_dir =
models: datanommer.models
consumer: datanommer.consumer
commands: datanommer.commands
commands_pre =
poetry install --all-extras
commands =
py: poetry run pytest {posargs}
licenses: {toxinidir}/tools/run-liccheck.sh
[testenv:checks]
allowlist_externals =
{[testenv]allowlist_externals}
pre-commit
git
commands_pre =
commands = pre-commit run --all-files
[testenv:docs]
commands_pre =
poetry -C datanommer.models install --all-extras
poetry -C datanommer.commands install --all-extras
allowlist_externals =
{[testenv]allowlist_externals}
mkdir
rm
deps =
sphinx
myst-parser
sphinx-click
commands=
mkdir -p docs/_static
rm -rf docs/_build
rm -rf docs/_source
sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/html