16 lines
264 B
Bash
Executable file
16 lines
264 B
Bash
Executable file
#!/bin/sh -eu
|
|
|
|
_run() {
|
|
printf '[%s] ' "$1" >&2
|
|
uv run -- "$@"
|
|
}
|
|
|
|
if [ "${1:-}" = '--fix' ]; then
|
|
_run ruff check --fix
|
|
_run ruff format
|
|
else
|
|
_run ruff check
|
|
_run ruff format --check
|
|
_run interrogate -v metadex
|
|
_run mypy metadex
|
|
fi
|