diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh new file mode 100755 index 0000000..ce1a62d --- /dev/null +++ b/scripts-dev/lint.sh @@ -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