-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I think we can automate the pre-commit hook for yapf better. From co-pilot
#!/bin/bash
# Format all tracked Python files
files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.py$')
if [ -n "$files" ]; then
echo "Running yapf on Python files..."
yapf -i $files
git add $files
fi
and place into
chmod +x .git/hooks/pre-commit
do we already have this for deepforest?
Metadata
Metadata
Assignees
Labels
No labels