-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
42 lines (36 loc) · 945 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
[tox]
envlist = checks,docs,licenses,{py38,py39,py310,py311,py312}-sqla{1,2}
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
allowlist_externals =
poetry
set_env =
SQLALCHEMY_WARN_20 = 1
commands_pre =
poetry install --all-extras
sqla1: poetry run pip install sqlalchemy<2.0.0
sqla2: poetry run pip install sqlalchemy>=2.0.0
commands =
poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing tests {posargs}
[testenv:docs]
changedir = docs
allowlist_externals =
{[testenv]allowlist_externals}
mkdir
rm
commands=
mkdir -p _static
rm -rf _build
rm -rf _source
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:checks]
commands = poetry run pre-commit run --all-files
[testenv:licenses]
deps =
setuptools
commands = poetry run devel/run-liccheck.sh
[flake8]
max-line-length = 100