metadex/scripts/lint
2023-04-15 16:55:56 +02:00

15 lines
290 B
Bash
Executable file

#!/bin/sh -eu
if [ "${1:-}" = '--fix' ]; then
ruff check --fix .
autoflake --recursive --in-place .
isort .
black .
else
ruff check .
autoflake --quiet --recursive --check .
isort --check .
black --check .
interrogate -v .
mypy --exclude tests .
fi