Skip to content

Commit

Permalink
Update pre-commit hook script
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-ceccato committed Aug 8, 2024
1 parent e39e5b9 commit 302ac72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ format_python_files() {
if command -v black >/dev/null 2>&1; then
for file in $(git diff --cached --name-only --diff-filter=ACM "$against" | grep -E '\.py$'); do
black "$file"
isort "$file"
git add "$file"
done
else
Expand All @@ -55,6 +56,7 @@ format_python_files() {
if command -v black >/dev/null 2>&1; then
for file in $(git diff --cached --name-only --diff-filter=ACM "$against" | grep -E '\.ipynb$'); do
black "$file"
isort "$file"
git add "$file"
done
else
Expand Down

0 comments on commit 302ac72

Please sign in to comment.