forked from albermax/innvestigate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (46 loc) · 962 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
48
49
50
51
52
[tox]
isolated_build = true
envlist = py{37}, isort, black, flake8, pylint, 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:isort]
description = "Check import formatting with isort"
basepython = python3.7
deps =
isort
commands =
isort --check .
[testenv:black]
description = "Check formatting with Black"
basepython = python3.7
deps =
black
commands =
black --check .
[testenv:flake8]
description = "Lint with flake8"
basepython = python3.7
deps =
flake8
commands =
flake8 .
[testenv:pylint]
description = "Lint with pylint"
basepython = python3.7
deps =
pylint
commands =
pylint src tests
[testenv:docs]
description = "Test doc build"
basepython = python3.7
deps =
sphinx
commands =
# Test if docs compile
sphinx-build docs/source docs/_build