-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
67 lines (59 loc) · 1.26 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
59
60
61
62
63
64
65
66
67
[tox]
requires =
tox>4
envlist =
lint
type
py311
py312
py313
docs
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest
[testenv:lint]
allowlist_externals = poetry
commands =
poetry run flake8
poetry run pydocstyle qbreader
poetry run isort --check --diff .
poetry run black --check --diff .
[testenv:format]
allowlist_externals = poetry
commands =
poetry run black .
poetry run isort .
[testenv:type]
allowlist_externals = poetry
commands =
poetry run mypy --no-incremental .
[testenv:docs]
description = generate and build docs
allowlist_externals = poetry, rm
commands =
rm -rf docs/api
poetry run sphinx-apidoc -Tefo docs/api qbreader
poetry run sphinx-build -TE -b html -d docs/_build/doctrees docs docs/_build
[testenv:autodoc]
description = generate autodocs
allowlist_externals = poetry, rm
commands =
rm -rf docs/api
sphinx-apidoc -Tefo docs/api qbreader
[testenv:build-docs]
description = build docs from .rst files
allowlist_externals = poetry
commands =
poetry run sphinx-build -TE -b html -d docs/_build/doctrees docs docs/_build
[flake8]
max_line_length = 88
exclude =
.vscode
.git
__pycache__
.venv
.tox
.mypy_cache