Closed MrIbrahem closed 11 months ago
The workflow for auto-formatting code with Black has been updated to include a pre-commit check. Instead of committing changes blindly, the script now verifies if any files were modified post-formatting. If no changes are detected, it simply reports back without making a commit, ensuring that commits are only made when necessary.
File Path | Change Summary |
---|---|
.github/workflows/black.yml |
Added a check to only commit and push if git status detects modified files; otherwise, outputs "No changes since last run". |
🐇✨ In the realm of code so black, A rabbit tweaked the auto-pack. "No changes to push," it said with glee, "Our repo's as tidy as can be!" 🎉 ✨🐇
Summary by CodeRabbit