2022-08-14 20:41:58 +02:00
|
|
|
#!/bin/sh -eu
|
|
|
|
|
|
|
|
|
|
if [ "${1:-}" = '--fix' ]; then
|
|
|
|
|
autoflake \
|
|
|
|
|
--remove-duplicate-keys \
|
|
|
|
|
--remove-unused-variables \
|
|
|
|
|
--remove-all-unused-imports \
|
|
|
|
|
--ignore-init-module-imports \
|
2023-02-08 22:42:06 +01:00
|
|
|
--ignore-pass-after-docstring \
|
2022-08-14 20:41:58 +02:00
|
|
|
--recursive \
|
|
|
|
|
--in-place \
|
|
|
|
|
.
|
|
|
|
|
isort --profile black .
|
|
|
|
|
black .
|
|
|
|
|
else
|
|
|
|
|
autoflake \
|
2023-02-08 22:42:06 +01:00
|
|
|
--quiet \
|
2022-08-14 20:41:58 +02:00
|
|
|
--remove-duplicate-keys \
|
|
|
|
|
--remove-unused-variables \
|
|
|
|
|
--remove-all-unused-imports \
|
|
|
|
|
--ignore-init-module-imports \
|
2023-02-08 22:42:06 +01:00
|
|
|
--ignore-pass-after-docstring \
|
2022-08-14 20:41:58 +02:00
|
|
|
--recursive \
|
|
|
|
|
--check \
|
|
|
|
|
.
|
|
|
|
|
isort --profile black --check .
|
|
|
|
|
black --check .
|
2023-02-08 22:42:06 +01:00
|
|
|
interrogate -v .
|
|
|
|
|
mypy --exclude tests .
|
2022-08-14 20:41:58 +02:00
|
|
|
fi
|