Initial MVP commits #1
21
setup.cfg
21
setup.cfg
@ -19,26 +19,5 @@ packages = find:
|
|||||||
install_requires =
|
install_requires =
|
||||||
paho-mqtt
|
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]
|
[options.packages.find]
|
||||||
where=src
|
where=src
|
||||||
|
|||||||
43
tox.ini
43
tox.ini
@ -5,27 +5,43 @@ isolated_build = True
|
|||||||
[testenv]
|
[testenv]
|
||||||
wheel = true
|
wheel = true
|
||||||
wheel_build_env = build
|
wheel_build_env = build
|
||||||
extras=
|
|
||||||
dev
|
|
||||||
|
|
||||||
[testenv:build]
|
[testenv:build]
|
||||||
deps = setuptools
|
deps = setuptools
|
||||||
|
|
||||||
|
|
||||||
[testenv:py37]
|
[testenv:py37]
|
||||||
|
deps =
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
pdbpp
|
||||||
commands =
|
commands =
|
||||||
pytest --cov={envsitepackagesdir}/hasskiosk \
|
pytest --cov={envsitepackagesdir}/hasskiosk \
|
||||||
--cov-report=term-missing \
|
--cov-report=term-missing \
|
||||||
--cov-report=xml:coverage.xml \
|
# --cov-report=xml:coverage.xml \
|
||||||
--junitxml=test-report.xml \
|
# --junitxml=test-report.xml \
|
||||||
--cov-branch \
|
--cov-branch \
|
||||||
--cov-fail-under=80
|
--cov-fail-under=80 \
|
||||||
|
{posargs}
|
||||||
|
|
||||||
[testenv:security]
|
[testenv:security]
|
||||||
|
deps =
|
||||||
|
bandit
|
||||||
commands =
|
commands =
|
||||||
bandit {envsitepackagesdir}/hasskiosk -r
|
bandit {envsitepackagesdir}/hasskiosk -r
|
||||||
|
|
||||||
[testenv:lint]
|
[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 =
|
commands =
|
||||||
flake8 --output-file pylint-out.txt --format pylint --tee
|
flake8 --output-file pylint-out.txt --format pylint --tee
|
||||||
|
|
||||||
@ -33,6 +49,21 @@ commands =
|
|||||||
commands =
|
commands =
|
||||||
python setup.py sdist bdist_wheel
|
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]
|
[pycodestyle]
|
||||||
max-line-length = 87
|
max-line-length = 87
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user