Document lint.sh & allow application to specified files only (#6312)

This commit is contained in:
Neil Pilgrim 2019-11-01 03:52:20 -07:00 committed by Andrew Morgan
parent ace947e8da
commit befd58f47b
3 changed files with 20 additions and 3 deletions

View file

@ -7,7 +7,15 @@
set -e
isort -y -rc synapse tests scripts-dev scripts
flake8 synapse tests
python3 -m black synapse tests scripts-dev scripts
if [ $# -ge 1 ]
then
files=$*
else
files="synapse tests scripts-dev scripts"
fi
echo "Linting these locations: $files"
isort -y -rc $files
flake8 $files
python3 -m black $files
./scripts-dev/config-lint.sh