From d8b2e87d8920d6ec8207c5b0b160bb5aa2ac0d5f Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 15 Aug 2021 20:05:28 +0100 Subject: [PATCH] Add lint script --- scripts-dev/lint.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts-dev/lint.sh 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