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 merge requests found
Pipeline #57785 passed with stages
in 2 minutes and 26 seconds
#!/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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment