rename package (_rus suffix), convert to pyproject.toml, poetry lints
This commit is contained in:
Executable
+31
@@ -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
|
||||
Reference in New Issue
Block a user