summary refs log tree commit diff
path: root/scripts-dev/lint.sh
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-11-19 12:59:39 +0000
committerErik Johnston <erik@matrix.org>2019-11-19 12:59:39 +0000
commit6d1a3e2bdddae4a9202cec590f87b6ccb0489879 (patch)
treeebad42c2198d0dcb4c2164fc27366c8a094077bc /scripts-dev/lint.sh
parentMerge branch 'rav/url_preview_limit_title_2' into matrix-org-hotfixes (diff)
parentReplace UPDATE with UPSERT on device_max_stream_id table (#6363) (diff)
downloadsynapse-6d1a3e2bdddae4a9202cec590f87b6ccb0489879.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-xscripts-dev/lint.sh14
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