switch from Poetry to uv
This commit is contained in:
parent
ce525f2c7c
commit
b04996dff1
9 changed files with 704 additions and 100 deletions
21
scripts/lint
21
scripts/lint
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue