26 lines
580 B
Text
26 lines
580 B
Text
|
|
#!/bin/sh -eu
|
||
|
|
|
||
|
|
if [ "${1:-}" = '--fix' ]; then
|
||
|
|
autoflake \
|
||
|
|
--remove-duplicate-keys \
|
||
|
|
--remove-unused-variables \
|
||
|
|
--remove-all-unused-imports \
|
||
|
|
--ignore-init-module-imports \
|
||
|
|
--recursive \
|
||
|
|
--in-place \
|
||
|
|
.
|
||
|
|
isort --profile black .
|
||
|
|
black .
|
||
|
|
else
|
||
|
|
autoflake \
|
||
|
|
--remove-duplicate-keys \
|
||
|
|
--remove-unused-variables \
|
||
|
|
--remove-all-unused-imports \
|
||
|
|
--ignore-init-module-imports \
|
||
|
|
--recursive \
|
||
|
|
--check \
|
||
|
|
.
|
||
|
|
isort --profile black --check .
|
||
|
|
black --check .
|
||
|
|
fi
|