Skip to content

Commit

Permalink
add pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Mar 19, 2024
1 parent e719e00 commit 6847f62
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cd hdr_schemata/models/HDRUK
python create_json_schema.py
cd ../GWDM
python create_json_schema.py

cd ../../../

pwd

if [ $? -ne 0 ]; then
echo "Pre-commit hook failed: Python script(s) failed"
exit 1
fi

exit 0

0 comments on commit 6847f62

Please sign in to comment.