feat: add pre-commit configuration for linting and commit message enforcement (#117) #202
Reference in New Issue
Block a user
Delete Branch "fix/issue-117"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
is it possible to add pre commit hook so anyone who want to commit in this repo will have their pre commit hook to run and fix it for them. what do you think?
This PR adds the pre-commit configuration! Once merged, contributors can run
pre-commit installto enable the hooks locally. The config includes:After merging, you would need to:
pre-commit installto install the hooksgit commit, the hooks will run automaticallyNote: The hooks run locally on the developer's machine - they don't auto-fix on push, but they will catch issues before commit.
can you write about it in CONTRIBUTING.md so anyone who contribute will know to run pre-commit install?
Done! Added a Pre-commit Hooks section to CONTRIBUTING.md with setup instructions and commit message format. The PR now includes both the hook configuration and documentation.
lgtm