Add lint script
This commit is contained in:
parent
e5bd13b8c1
commit
d8b2e87d89
18
scripts-dev/lint.sh
Executable file
18
scripts-dev/lint.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user