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 33e13e877e
commit 5738edb49c
16 changed files with 37 additions and 21 deletions

View file

@ -8,7 +8,6 @@ PIP_INSTALL := \
PYLINT_ARG := libretime_analyzer tests || true
MYPY_ARG := libretime_analyzer tests || true
BANDIT_ARG := libretime_analyzer || true
PYTEST_ARG := --cov=libretime_analyzer tests
format: .format
lint: .format-check .pylint .mypy .bandit
@ -17,4 +16,5 @@ fixtures:
bash tests/fixtures/generate.sh
test: fixtures .pytest
test-coverage: fixtures .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_analyzer"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"