-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
47 lines (41 loc) · 1013 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
45
46
47
[tox]
envlist = checks,licenses,docs,{py39,py310}-unit
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install
commands =
unit: poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing fasjson/tests/unit {posargs}
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
allowlist_externals =
{[testenv]allowlist_externals}
rm
mkdir
commands=
rm -rf _build
rm -rf _source
rm -rf _api
mkdir _api
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:checks]
allowlist_externals =
{[testenv]allowlist_externals}
pre-commit
git
commands =
pre-commit run --all-files
[testenv:licenses]
commands =
poetry run {toxinidir}/devel/run-liccheck.sh
# We're using Ruff now, but we leave this line in place for contributors whose
# editor still only runs flake8.
[flake8]
max-line-length = 100