1
0
Files
synapse/scripts-dev/lint.sh
Will Hunt 90a5975c7b Remove options from isort that aren't part of 5.x
`-y` and `-rc` are now default behaviour and no longer exist.

`dont-skip` is no longer required

https://timothycrosley.github.io/isort/CHANGELOG/#500-penny-july-4-2020
2020-07-05 14:25:44 +01:00

22 lines
387 B
Bash
Executable File

#!/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"
fi
echo "Linting these locations: $files"
isort $files
python3 -m black $files
./scripts-dev/config-lint.sh
flake8 $files