matrix-reminder-bot/scripts-dev/lint.sh

21 lines
362 B
Bash
Executable File

#!/bin/sh
#
# Runs linting scripts over the local checkout
# isort - sorts import statements
# flake8 - lints and finds mistakes
# black - opinionated code formatter
set -e
if [ $# -ge 1 ]
then
files=$*
else
files="matrix_reminder_bot matrix-reminder-bot"
fi
echo "Linting these locations: $files"
isort $files
flake8 $files
python3 -m black $files