1
0
mirror of https://github.com/enpaul/keyosk.git synced 2025-12-18 01:20:38 +00:00

Update repo meta files

This commit is contained in:
2020-02-18 22:37:39 -05:00
parent b17988e287
commit fa02ef1f94
10 changed files with 672 additions and 24 deletions

60
tox.ini
View File

@@ -1,26 +1,48 @@
[tox]
envlist = py37, lint, typing, docs
[testenv:lint]
description = Check code formatting against black and pylint
basepython = python3.7
deps =
black
pylint >= 2.1.1
commands =
black front_desk
pylint front_desk
[testenv:typing]
description = Check type annotations with mypy
basepython = python3.7
deps = mypy
commands = mypy front_desk --ignore-missing-imports --no-strict-optional
envlist = py37, py36, lint, typing, security, docs
isolated_build = true
[testenv]
description = Run the unit tests with pytest under {basepython} and report coverage
description = Run the unit tests (pytest)
deps =
pytest
pytest-cov
commands =
pytest --cov={envsitepackagesdir}/keyosk --cov-config {env:HOME}/.coveragerc tests/ --cov-report term-missing
commands = pytest --cov={envsitepackagesdir}/front_desk --cov-config {env:HOME}/.coveragerc tests/ --cov-report term-missing
[testenv:lint]
description = Check code formatting against black and pylint
deps =
pre-commit
pylint == 2.3.1
astroid == 2.2.5
commands =
pre-commit run --all-files
pylint keyosk
[testenv:typing]
description = Check type annotations with mypy
deps =
mypy
commands =
mypy keyosk --ignore-missing-imports --no-strict-optional
[testenv:security]
description = Check security vulnerabilities (bandit)
deps =
bandit
commands =
bandit --recursive keyosk
[testenv:docs]
description = Build documentation to check RST syntax (sphinx)
deps =
sphinx >= 1.7.5, < 2.0
sphinx-autodoc-typehints >= 1.3.0, < 2.0
whitelist_externals =
rm
commands =
sphinx-apidoc -o "./docs/" "keyosk"
rm "docs/modules.rst"
sphinx-build -M html "./docs/" "./docs/_build"
sphinx-build -M latex "./docs/" "./docs/_build"