switch from Poetry to uv

This commit is contained in:
ducklet 2025-02-01 14:53:59 +01:00
parent ce525f2c7c
commit b04996dff1
9 changed files with 704 additions and 100 deletions

View file

@ -1,15 +1,16 @@
#!/bin/sh -eu
_run() {
printf '[%s] ' "$1" >&2
uv run -- "$@"
}
if [ "${1:-}" = '--fix' ]; then
ruff check --fix .
autoflake --recursive --in-place .
isort .
black .
_run ruff check --fix
_run ruff format
else
ruff check .
autoflake --quiet --recursive --check .
isort --check .
black --check .
interrogate -v .
mypy --exclude tests .
_run ruff check
_run ruff format --check
_run interrogate -v metadex
_run mypy metadex
fi