File size: 501 Bytes
3133fdb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#!/bin/bash -ev
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Run this script at project root with "./dev/linter.sh" before you commit.
echo "Running autoflake..."
python -m autoflake --remove-all-unused-imports -i .
echo "Running isort..."
isort -y -sp .
echo "Running black..."
black .
echo "Running flake8..."
if [ -x "$(command -v flake8)" ]; then
flake8 .
else
python3 -m flake8 .
fi
command -v arc > /dev/null && {
echo "Running arc lint ..."
arc lint
}
|