summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-16 09:32:10 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-16 09:32:10 +0200
commit99c4e883049c5a797e63df396d3530b77700a1d5 (patch)
tree58a3bbc3504731d737a2d31bf601af3731a1b9e4 /check
parentf3a49e6a8ad7247fbe32e455cdc1e3f217a0e073 (diff)
Modernize packaging with pyproject.toml and setuptool_scm.
Diffstat (limited to 'check')
-rwxr-xr-xcheck8
1 files changed, 4 insertions, 4 deletions
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 .