init
This commit is contained in:
commit
4cbe50253a
36 changed files with 4073 additions and 0 deletions
59
tox.ini
Normal file
59
tox.ini
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
[tox]
|
||||
requires =
|
||||
tox>=4.19
|
||||
env_list =
|
||||
py3{8-12}-{unit}
|
||||
py3{8-12}-sphinx{5-8}-{integration}
|
||||
lint
|
||||
format
|
||||
audit
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
.
|
||||
|
||||
[testenv:lint]
|
||||
description = run type check on code base
|
||||
labels = static
|
||||
deps =
|
||||
mypy
|
||||
commands =
|
||||
mypy src
|
||||
mypy tests
|
||||
|
||||
[testenv:audit]
|
||||
description = run type check on code base
|
||||
labels = static
|
||||
deps =
|
||||
pip-audit
|
||||
commands =
|
||||
pip-audit .
|
||||
|
||||
[testenv:format]
|
||||
description = run type check on code base
|
||||
labels = static
|
||||
deps =
|
||||
autopep8
|
||||
commands =
|
||||
autopep8 --recursive --diff --exit-code src/
|
||||
autopep8 --recursive --diff --exit-code tests/
|
||||
|
||||
[testenv:py3{8-13}-unit]
|
||||
description = run type check on code base
|
||||
labels = unit
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
commands =
|
||||
python3 -m unittest discover tests/unit
|
||||
|
||||
[testenv:py3{8-13}-sphinx{5-8}-integration]
|
||||
description = run type check on code base
|
||||
labels = integration
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
sphinx5: sphinx>=5.0,<=6.0
|
||||
sphinx6: sphinx>=6.0,<=7.0
|
||||
sphinx7: sphinx>=7.0,<=8.0
|
||||
sphinx8: sphinx>=8.0,<=9.0
|
||||
commands =
|
||||
python3 -m unittest discover tests/integration
|
||||
Loading…
Add table
Add a link
Reference in a new issue