move dev packages to tox.ini

This commit is contained in:
Mike Bloy 2021-02-28 14:55:16 -06:00
parent 9acd59dfaf
commit c05bf7eb4f
2 changed files with 37 additions and 27 deletions

View File

@ -19,26 +19,5 @@ packages = find:
install_requires =
paho-mqtt
[options.extras_require]
dev =
bpython
flake8
flake8-bandit
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-executable
flake8-isort
flake8-logging-format
mypy
pdbpp
pycodestyle
pydocstyle
pytest
pytest-cov
python-language-server
rope
sphinx
[options.packages.find]
where=src

43
tox.ini
View File

@ -5,27 +5,43 @@ isolated_build = True
[testenv]
wheel = true
wheel_build_env = build
extras=
dev
[testenv:build]
deps = setuptools
[testenv:py37]
deps =
pytest
pytest-cov
pdbpp
commands =
pytest --cov={envsitepackagesdir}/hasskiosk \
--cov-report=term-missing \
--cov-report=xml:coverage.xml \
--junitxml=test-report.xml \
# --cov-report=xml:coverage.xml \
# --junitxml=test-report.xml \
--cov-branch \
--cov-fail-under=80
--cov-fail-under=80 \
{posargs}
[testenv:security]
deps =
bandit
commands =
bandit {envsitepackagesdir}/hasskiosk -r
[testenv:lint]
deps =
flake8
flake8-bandit
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-executable
flake8-isort
flake8-logging-format
flake8-mypy
pycodestyle
pydocstyle
commands =
flake8 --output-file pylint-out.txt --format pylint --tee
@ -33,6 +49,21 @@ commands =
commands =
python setup.py sdist bdist_wheel
[testenv:dev]
# this environment lets tox create a development env quickly and easily
deps =
bpython
mypy
python-language-server
rope
{[testenv:py37]deps}
{[testenv:security]deps}
{[testenv:security]deps}
{[testenv:lint]deps}
basepython = python3.7
envdir = {toxinidir}/.venv
usedevelop = True
[pycodestyle]
max-line-length = 87