From 99c4e883049c5a797e63df396d3530b77700a1d5 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 16 Apr 2024 09:32:10 +0200 Subject: Modernize packaging with pyproject.toml and setuptool_scm. --- check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'check') diff --git a/check b/check index 4961935..2082dd9 100755 --- a/check +++ b/check @@ -11,7 +11,7 @@ then fi PYTHON="${PYTHON:-python3}" -NOSE2="${NOSE2:-$PYTHON -m nose2}" +COVERAGE="${COVERAGE:-python3-coverage}" export PYTHONDEVMODE=1 @@ -20,11 +20,11 @@ shift 1 case $SUBCMD in "tests") - $NOSE2 $COVER_OPT --log-level=ERROR -B --log-capture $* + $PYTHON -m unittest discover -s tests ;; "coverage") - $NOSE2 --with-coverage --coverage-report=term-missing \ - --log-level=ERROR -B --log-capture $* + $COVERAGE run --source=hazwaz -m unittest discover -s tests + $COVERAGE report -m ;; "qa") flake8 --select=E,F,W,C90,E123 --ignore=W503 . -- cgit v1.2.3