From 70ed1dcf05aa9cd7e3c03afd47625dc8a75ab556 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 25 Feb 2024 20:11:51 +0100 Subject: Modernize packaging with pyproject.toml and setuptool_scm. --- check | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'check') 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 -- cgit v1.2.3