-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
30 lines (29 loc) · 885 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
[tox]
#envlist = py-{pylint,flake8,isort,rstlint,pydiatra,pydocstyle,safety,pytest,black,bandit,mypy,djhtml}
envlist = py-{pylint,flake8,isort,rstlint,pydiatra,pydocstyle,pytest,black,bandit,mypy,djhtml}
skipsdist = True
[testenv]
basepython = python3.10
setenv =
PYTHONPATH = src
deps = -r{toxinidir}/requirements-dev.txt
sitepackages = false
envdir =
py: {toxworkdir}/py
allowlist_externals =
make
echo
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
djhtml: make djhtml-script