tools: add shell_lint target to lint .sh files

- update docker image to install shellcheck
- fix lint errors in files
This commit is contained in:
Arthur Meyre
2021-09-21 10:00:34 +02:00
parent e11570e973
commit 1a340e111e
9 changed files with 29 additions and 16 deletions

View File

@@ -30,16 +30,16 @@ do
*)
echo "Unknown param : $1"
exit -1
exit 1
;;
esac
shift
done
for SRC_DIR in "${DIRS[@]}"; do
isort --profile black ${CHECK} ${SRC_DIR}
isort --profile black "${CHECK}" "${SRC_DIR}"
((FAILURES+=$?))
black -l 100 ${CHECK} ${SRC_DIR}
black -l 100 "${CHECK}" "${SRC_DIR}"
((FAILURES+=$?))
done