This commit is contained in:
2021-08-02 22:12:33 +02:00
parent fed29ebbbe
commit 7b3498bd27
57 changed files with 2778 additions and 0 deletions

20
scripts-dev/lint.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/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="my_project_name my-project-name tests"
fi
echo "Linting these locations: $files"
isort $files
flake8 $files
python3 -m black $files