home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77e9d9d
)
On pre-commit hook run, clean up potential test db files.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2024 21:30:51 +0000
(23:30 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2024 21:30:51 +0000
(23:30 +0200)
scripts/pre-commit
patch
|
blob
|
history
diff --git
a/scripts/pre-commit
b/scripts/pre-commit
index 6f84c41524e31d1aabd689c71dd37550e094ca0c..e4493a6f34eb279064d6e49e23ea02039f8f4e06 100755
(executable)
--- a/
scripts/pre-commit
+++ b/
scripts/pre-commit
@@
-9,5
+9,8
@@
for dir in $(echo '.' 'plomtask' 'tests'); do
python3 -m pylint ${dir}/*.py
done
echo "Running unittest on tests/."
+set +e
python3 -m unittest tests/*.py
+rm test_db:*.*
+set -e
exit 0