root directory non hidden files

old-commit-hash: 012535a84e
This commit is contained in:
George Hotz
2020-01-17 10:22:00 -08:00
parent db5942333a
commit 06c6ee312b
26 changed files with 1842 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
git stash -q --keep-index
$(git rev-parse --show-toplevel)/flake8_openpilot.sh
RESULT=$?
if [ $RESULT -eq 0 ]; then
IGNORE_REGEXP=$(echo -n "^(?!"; echo $(cat release/files_common release/files_common | tr '\n' ' ') | tr ' ' '\n' | grep "py$" | tr '\n' '|' | sed s'/|$//'; echo ").*")
git-pylint-commit-hook --ignore $IGNORE_REGEXP
RESULT=$?
fi
git stash pop -q
[ $RESULT -ne 0 ] && exit 1
exit 0