-
Notifications
You must be signed in to change notification settings - Fork 35
/
tox.ini
44 lines (38 loc) · 874 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
38
39
40
41
42
43
44
[tox]
envlist = py{310,311},checks,docs,licenses
skipsdist = True
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install --all-extras
commands =
poetry run pytest {posargs}
[testenv:checks]
commands = poetry run pre-commit run --all-files
[testenv:docs]
changedir = datagrepper/docs
allowlist_externals =
{[testenv]allowlist_externals}
mkdir
rm
commands=
mkdir -p _static
rm -rf _build
rm -rf _source
poetry run sphinx-build -b html -d {envtmpdir}/doctrees . _build/html
[testenv:licenses]
allowlist_externals =
{[testenv]allowlist_externals}
{toxinidir}/devel/run-liccheck.sh
commands =
{toxinidir}/devel/run-liccheck.sh
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg
extend-ignore = E203