0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 06:51:46 +01:00
synapse/scripts-dev/lint.sh

22 lines
402 B
Bash
Raw Normal View History

#!/bin/sh
#
# Runs linting scripts over the local Synapse checkout
# isort - sorts import statements
# black - opinionated code formatter
# flake8 - lints and finds mistakes
set -e
if [ $# -ge 1 ]
then
files=$*
else
files="synapse tests scripts-dev scripts contrib synctl"
fi
echo "Linting these locations: $files"
isort $files
python3 -m black $files
./scripts-dev/config-lint.sh
flake8 $files