rename package (_rus suffix), convert to pyproject.toml, poetry lints

This commit is contained in:
2025-05-08 11:32:53 +02:00
parent 68ca87ee3a
commit a6b6ca9c8f
14 changed files with 260 additions and 49 deletions
Executable
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
set -e
cd "$(dirname "$(readlink "$0")")"
sources=($@)
if [ "${#sources[@]}" -eq 0 ]; then
sources=(src)
fi
rc=0
run() {
# remember last failure
if "$@"; then :; else rc=$?; fi
}
export PYTHONDONTWRITEBYTECODE=1
poetry sync --extras=dev --quiet || poetry sync --extras=dev
echo "flake8:"
run poetry run flake8 "${sources[@]}"
echo "mypy:"
run poetry run mypy
# run formatters?
# black . && isort .
exit $rc