19 lines
343 B
Bash
Executable file
19 lines
343 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
if [ "$1" = '--fix' ]; then
|
|
(
|
|
set -x
|
|
black .
|
|
isort --profile black .
|
|
autoflake --in-place --recursive .
|
|
)
|
|
exit
|
|
fi
|
|
|
|
error=0
|
|
|
|
(set -x; black --check .) || error=$?
|
|
(set -x; isort --profile black --check .) || error=$?
|
|
(set -x; autoflake --check --recursive .) || error=$?
|
|
|
|
exit "$error"
|