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
340 B
21 lines
340 B
3 years ago
|
#!/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="molly molly tests"
|
||
|
fi
|
||
|
|
||
|
echo "Linting these locations: $files"
|
||
|
isort $files
|
||
|
flake8 $files
|
||
|
python3 -m black $files
|