chore: split test and coverage tasks

This commit is contained in:
jo 2022-12-07 11:42:16 +01:00 committed by Kyle Robbertze
parent 2ccd93299a
commit 14beb885a3
16 changed files with 37 additions and 21 deletions

View file

@ -8,9 +8,9 @@ PIP_INSTALL := \
PYLINT_ARG := libretime_worker
MYPY_ARG := libretime_worker || true
BANDIT_ARG := libretime_worker
PYTEST_ARG = --cov=libretime_worker tests
format: .format
lint: .format-check .pylint .mypy .bandit
test: .pytest
test-coverage: .coverage
clean: .clean

View file

@ -13,6 +13,9 @@ disable = "logging-fstring-interpolation"
log_cli = true
log_cli_level = "DEBUG"
[tool.coverage.run]
source = ["libretime_worker"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"