-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (66 loc) · 1.5 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
envlist = py{310,311}
isolated_build = true
[tool:pytest]
addopts = --verbose
[testenv]
deps =
{[testenv:pytest]deps}
whitelist_externals=
python
{[testenv:pytest]whitelist_externals}
commands=
{[testenv:pytest]commands}
; ======================== tests ========================
[testenv:pytest]
deps =
pytest
pytest-asyncio
pytest-timeout
whitelist_externals = pytest
commands = pytest --basetemp={envtmpdir} {env:pytest_args:} {posargs}
[testenv:docs]
deps=
sphinx
sphinx-argparse
commands=
sphinx-build {env:sphinx_args:-W -b html -d "{envtmpdir}/doctrees" docs/source "{distdir}/html"}
[testenv:mypy]
deps =
mypy
types-aiofiles
types-setuptools
skip_install=True
setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
commands = mypy {posargs: src/backend/speedcloud}
[testenv:flake8]
description = check the code style
deps =
flake8
skip_install=True
commands = flake8 {posargs: src/backend/speedcloud}
[testenv:pylint]
description = check the code style
deps =
pylint
skip_install=True
commands = pylint {posargs: src/backend/speedcloud} --disable import-error
[testenv:pydocstyle]
skip_install = true
deps=
pydocstyle
toml
commands =
pydocstyle {posargs: {toxinidir}/src/backend/speedcloud}
[testenv:bandit]
skip_install = true
deps=
bandit
commands =
bandit {posargs: --recursive {toxinidir}/src/backend/speedcloud}
[testenv:ruff]
skip_install = true
deps=
ruff
commands =
ruff {posargs: {toxinidir}/src/backend/speedcloud}