aboutsummaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:11:51 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:11:51 +0100
commit70ed1dcf05aa9cd7e3c03afd47625dc8a75ab556 (patch)
treec6ec7636d43e79bfb28926aa3042bc20b7b30034 /check
parentbcfb9917fac6c772e74732ec5d633e27c812caf1 (diff)
Modernize packaging with pyproject.toml and setuptool_scm.
Diffstat (limited to 'check')
-rwxr-xr-xcheck13
1 files changed, 7 insertions, 6 deletions
diff --git a/check b/check
index beb841c..1843ff7 100755
--- a/check
+++ b/check
@@ -10,6 +10,9 @@ then
exit 0
fi
+PYTHON="${PYTHON:-python3}"
+COVERAGE="${COVERAGE:-python3-coverage}"
+
export PYTHONDEVMODE=1
SUBCMD=$1
@@ -17,16 +20,14 @@ shift 1
case $SUBCMD in
"tests")
- #nose2-3 $COVER_OPT --log-level=ERROR -B --log-capture $*
- nosetests3 $*
+ $PYTHON -m unittest discover -s tests
;;
"coverage")
- #nose2-3 --with-coverage --coverage-report=term \
- # --log-level=ERROR -B --log-capture $*
- nosetests3 --with-coverage --cover-erase --cover-package=lesana $*
+ $COVERAGE run --source=lesana -m unittest discover -s tests
+ $COVERAGE report -m
;;
"qa")
- flake8 --select=E,F,W,C90,E123 --ignore=W503 .
+ flake8 --select=E,F,W,C90,E123 --ignore=W503 lesana tests scripts
isort --check-only --diff .
if which doc8
then