diff options
author | Amber H. Brown <hawkowl@atleastfornow.net> | 2019-07-26 01:48:50 +1000 |
---|---|---|
committer | Amber H. Brown <hawkowl@atleastfornow.net> | 2019-07-26 01:48:50 +1000 |
commit | f61cdc14e7f6e48b500e83a2b613cefe94cb31a6 (patch) | |
tree | 726c9b89faf851741e5ca4f4f7f9b473fd86983f /scripts-dev/lint.sh | |
parent | dockerfile update (diff) | |
parent | 1.2.0 (diff) | |
download | synapse-f61cdc14e7f6e48b500e83a2b613cefe94cb31a6.tar.xz |
Merge tag 'v1.2.0' into shhs shhs-v1.2
No changes since v1.2.0rc2.
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-x | scripts-dev/lint.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh new file mode 100755 index 0000000000..ebb4d69f86 --- /dev/null +++ b/scripts-dev/lint.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Runs linting scripts over the local Synapse checkout +# isort - sorts import statements +# flake8 - lints and finds mistakes +# black - opinionated code formatter + +set -e + +isort -y -rc synapse tests scripts-dev scripts +flake8 synapse tests +python3 -m black synapse tests scripts-dev scripts |