mirror of https://github.com/watcha-fr/synapse
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
394 B
21 lines
394 B
#!/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
|
|
|
|
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
|
|
|