-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
64 lines (60 loc) · 1.33 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
[tox]
minversion = 3.14.0
envlist =
python3.9
python3.10
python3.11
static
docs
isolated-build = true
[testenv]
allowlist_externals = poetry
skip_install = true
deps =
pytest ~= 5.3.0
pytest-cov ~= 2.8.0
pytest-randomly ~= 3.2.0
# XXX: (2020-03-15) This will install tox again, but it only happens once.
commands_pre = poetry install
commands =
pytest \
--verbose \
--cov=rose-pine \
--cov-report=term-missing \
--cov-fail-under=100 \
{posargs}
[testenv:static]
basepython = python3.11
deps =
bandit ~= 1.6.0
black ~= 19.10b0
flake8 ~= 3.7.0
flake8-bugbear ~= 20.1.0
flake8-commas ~= 2.0.0
flake8-docstrings ~= 1.5.0
pep8-naming ~= 0.9.0
commands_pre =
commands =
black --check src
flake8 --docstring-convention=google src
mypy \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-incomplete-defs \
--disallow-untyped-decorators \
rosepine.py
bandit --recursive -ll src
[testenv:docs]
basepython = python3.11
deps =
sphinx ~= 3.3.0
sphinx-autodoc-typehints ~= 1.10.0
furo == 2020.11.27b19
commands_pre =
commands =
sphinx-build -b html docs {posargs:docs/_build/html}
[gh-actions]
python =
3.9: python3.9
3.10: python3.10
3.11: python3.11, static, docs