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

This commit is contained in:
Neil Pilgrim authored and Andrew Morgan committed 2019-11-01 10:52:20 +00:00
1 parent ace947e8da
commit befd58f47b
3 files changed
+20 -3

No files matched your search

+11 -3
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