Add lint script

This commit is contained in:
Olivier 'reivilibre' 2021-08-15 20:05:28 +01:00
parent e5bd13b8c1
commit d8b2e87d89
1 changed files with 18 additions and 0 deletions

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

@ -0,0 +1,18 @@
#!/bin/sh -eu
if [ $# -ge 1 ]
then
files=$*
else
files="testsuite/setup.py testsuite/datmantests testsuite/helpers testsuite/yamatests datman-helper-postgres/datman_helper_postgres datman-helper-postgres/setup.py"
fi
echo "Linting these locations: $files"
echo " ===== Running isort ===== "
isort $files
echo " ===== Running black ===== "
black $files
echo " ===== Running flake8 ===== "
flake8 $files
#echo " ===== Running mypy ===== "
#mypy $files