-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
49 lines (46 loc) · 943 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
[tox]
min_version = 4.0
env_list =
test
lint
docs
isolated_build = True
[testenv:test]
deps =
pytest
pytest-cases
extras =
cpu
commands =
python -m doctest README.md
pytest -v -x -Werror {posargs}
[testenv:lint]
deps =
nbqa
black
isort
pylint
mypy
extras =
cpu
commands =
black --check --diff . --quiet
nbqa black --check --diff . --quiet
isort --check --diff . --quiet
nbqa isort --check --diff . --quiet
pylint src --score=n
pylint tests --disable="missing-function-docstring,unnecessary-lambda-assignment" --score=n
nbqa pylint docs --disable="missing-module-docstring,unnecessary-lambda-assignment" --score=n
mypy src
mypy tests/
[testenv:docs]
description = Build the HTML docs
extras =
cpu
deps =
-r {toxinidir}/docs/requirements-sphinx-build.txt
allowlist_externals = make
changedir = docs/
commands =
make clean
make html