diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-11-06 11:59:22 -0500 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-11-06 11:59:22 -0500 |
commit | a5a59ab8ac6d6b244158261ee4d307d419b20180 (patch) | |
tree | d809f7205647c13b93a103727dab6f4a19c878e4 /scripts-dev/lint.sh | |
parent | fix merge conflict (diff) | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-a5a59ab8ac6d6b244158261ee4d307d419b20180.tar.xz |
Merge branch 'develop' into uhoreg/e2e_backup_hash
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-x | scripts-dev/lint.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh index ebb4d69f86..34c4854e11 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh @@ -7,6 +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 |