-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (31 loc) · 788 Bytes
/
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
[tox]
# pytest,
envlist = py-{pylint,flake8,isort,rstlint,pydiatra,pydocstyle,black,bandit,mypy}
skipsdist = True
isolated_build = true
[testenv]
basepython = python3.11
setenv =
PYTHONPATH = src
sitepackages = false
envdir =
py: {toxworkdir}/py
allowlist_externals =
make
echo
poetry
commands_pre =
poetry install --no-root --sync
commands =
requirements: echo "Install requirements"
flake8: flake8 src
pylint: pylint src
pydiatra: make pydiatra-script
isort: isort --check-only --diff src
bandit: bandit -r src --exclude src/{env:APP}/tests
pydocstyle: pydocstyle src --count
safety: safety check
pytest: py.test
rstlint: rst-lint README.rst doc.rst
black: black . --check
mypy: mypy src --explicit-package-bases