forked from albermax/innvestigate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (37 loc) · 756 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
[tox]
isolated_build = true
envlist = py{38, 310}, format, lint, docs
[testenv]
description = "Run unit tests"
whitelist_externals = poetry
commands =
poetry install --no-root -v
# Run pytest with config and coverage options in pyproject.toml
poetry run pytest
[testenv:format]
description = "Check formatting"
basepython = python3.10
deps =
isort
black
commands =
black --check .
isort --check .
[testenv:lint]
description = "Check linting"
basepython = python3.10
ignore_outcome = true
deps =
ruff
pylint
commands =
ruff .
pylint src tests
[testenv:docs]
description = "Test doc build"
basepython = python3.10
deps =
sphinx
commands =
# Test if docs compile
sphinx-build docs/source docs/_build