Skip to content
Snippets Groups Projects
Commit c5ec9fc6 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

added git hooks

parent 329f28e2
No related branches found
No related tags found
No related merge requests found
Pipeline #57785 passed
#!/bin/bash
echo "[Pre-Commit] Checking code style"
pdm run flake8 src/pystencilssfg
status=$?
if [ ${status} != 0 ]; then
exit 1
else
echo "[Pre-Commit] Style OK!"
fi
echo "[Pre-Commit] Checking types"
pdm run mypy src/pystencilssfg
status=$?
if [ ${status} != 0 ]; then
exit 1
else
echo "[Pre-Commit] Types OK!"
fi
#!/bin/bash
cp git-hooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment