1
0

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

* commit 'befd58f47':
  Document lint.sh & allow application to specified files only (#6312)
This commit is contained in:
Andrew Morgan
2020-03-16 19:23:55 +00:00
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