1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-05 06:07:06 +00:00
keyosk/tox.ini
2020-02-18 22:11:58 -05:00

27 lines
659 B
INI

[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
[testenv]
description = Run the unit tests with pytest under {basepython} and report coverage
deps =
pytest
pytest-cov
commands = pytest --cov={envsitepackagesdir}/front_desk --cov-config {env:HOME}/.coveragerc tests/ --cov-report term-missing