metadex/scripts/lint
2023-02-08 23:04:06 +01:00

13 lines
250 B
Bash
Executable file

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