diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2024-02-25 20:11:51 +0100 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2024-02-25 20:11:51 +0100 | 
| commit | 70ed1dcf05aa9cd7e3c03afd47625dc8a75ab556 (patch) | |
| tree | c6ec7636d43e79bfb28926aa3042bc20b7b30034 /check | |
| parent | bcfb9917fac6c772e74732ec5d633e27c812caf1 (diff) | |
Modernize packaging with pyproject.toml and setuptool_scm.
Diffstat (limited to 'check')
| -rwxr-xr-x | check | 13 | 
1 files changed, 7 insertions, 6 deletions
@@ -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  | 
