-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (46 loc) · 1.16 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
[tox]
isolated_build = true
skipsdist = true
envlist = check, apply-check, docs, tests, build, changelog
[testenv]
allowlist_externals = poetry
#, ./test_compress_init.sh
commands_pre =
poetry install --sync
[testenv:check]
commands =
black --diff src/compress docs
isort --df src/compress docs
flake8 src/compress docs
codespell src docs
[testenv:apply-check]
commands =
black -C src/compress docs
black src/compress docs
isort src/compress docs
[testenv:docs]
commands_pre =
poetry install --no-root --sync -E docs
commands =
sphinx-build -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html
#[testenv:tests]
#setenv = file|tox.env
#passenv = CONTAINER_HOST,compress_DOCKER_IMAGE_TAG
#commands =
# ./test_compress_init.sh "pytest -vv --cov=compress --cov-report term-missing {posargs}"
[testenv:build]
commands =
poetry build --format sdist
poetry build --format wheel
[testenv:changelog]
setenv = file|tox.env
passenv = CONTAINER_HOST
commands =
cz changelog
[flake8]
max-line-length = 99
docstring-convention = all
ignore = D203, D213, W503
docstring_style = sphinx
[darglint]
enable = DAR104