Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:27:33 +08:00
commit 3f48e3c361
5 changed files with 89 additions and 0 deletions

10
hooks/python_format.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -u
uvx hatch fmt "$1" 1>&2
exit_code=$?
if [ $exit_code -eq 1 ]; then
exit 2
else
exit $exit_code
fi