Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .pre-commit-config.yaml #8811

Merged
merged 1 commit into from
Jul 31, 2022
Merged

Update .pre-commit-config.yaml #8811

merged 1 commit into from
Jul 31, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jul 31, 2022

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved pre-commit hooks to prevent commits directly to the master branch.

πŸ“Š Key Changes

  • Added a new hook, no-commit-to-branch, to restrict direct commits to the master branch.
  • Removed the stages restriction on the end-of-file-fixer hook.

🎯 Purpose & Impact

  • 🚫 The new no-commit-to-branch hook ensures that developers do not accidentally commit changes directly to the master branch, which promotes better code management and review practices.
  • βœ… Removing the stages restriction on the end-of-file-fixer hook allows for automatic fixing of end-of-file issues regardless of the commit stage, simplifying and streamlining code maintenance.
  • πŸ”’ Overall, these changes aim to enforce better code contribution workflows, leading to a more robust, clean, and stable codebase for YOLOv5 users and contributors.

@glenn-jocher glenn-jocher self-assigned this Jul 31, 2022
@glenn-jocher glenn-jocher merged commit 685332e into master Jul 31, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 31, 2022 18:06
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant