diff options
author | Neil Pilgrim <github@kepier.clara.net> | 2019-11-01 03:52:20 -0700 |
---|---|---|
committer | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-11-01 10:52:20 +0000 |
commit | befd58f47bab1b8337032d27a995e08c7dd93a83 (patch) | |
tree | 165e051d848b4d70367b4fe80d37d65ac01572c0 /scripts-dev/lint.sh | |
parent | Depublish a room from the public rooms list when it is upgraded (#6232) (diff) | |
download | synapse-befd58f47bab1b8337032d27a995e08c7dd93a83.tar.xz |
Document lint.sh & allow application to specified files only (#6312)
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-x | scripts-dev/lint.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh index 02a2ca39e5..34c4854e11 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh @@ -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 |