-
Notifications
You must be signed in to change notification settings - Fork 29
/
tox.ini
58 lines (52 loc) · 1.18 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
[tox]
envlist = py3,black,ruff
output_dir={env:SPHINX_OUTPUT_DIR:{toxworkdir}/_build}
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest \
--cov=dlt \
--cov-branch \
--cov-report=html \
--cov-report=term-missing \
{posargs:tests}
[pytest]
filterwarnings =
error
[testenv:ruff]
basepython = python3
skip_install = true
deps =
ruff
mypy
commands =
ruff check ./dlt ./tests
[testenv:black]
skip_install = True
skipsdist = True
deps =
black
commands =
black -l 119 --check .
[testenv:docs]
deps=-r{toxinidir}/docs/requirements-docs.txt
commands=
# Workaround for https://github.com/tox-dev/tox/issues/149
pip install -q -r {toxinidir}/docs/requirements-docs.txt
sphinx-build -T -j auto --color -W -c docs docs {[tox]output_dir} {posargs}
python -c 'import pathlib; print("website available under file://\{0\}".format(pathlib.Path(r"{[tox]output_dir}") / "index.html"))'
[testenv:release]
basepython = python3
passenv = SOURCE_DATE_EPOCH
skip_install = True
skipsdist = True
deps =
build
twine
wheel
commands =
python -m build
twine upload -r software-factory-pypi dist/*