1
0

Add a linting script (#5627)

This commit is contained in:
Andrew Morgan
2020-02-17 16:35:48 +00:00
2 changed files with 13 additions and 0 deletions

12
scripts-dev/lint.sh Executable file
View File

@@ -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