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

Add pre-commit hooks #14839

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Add pre-commit hooks #14839

wants to merge 2 commits into from

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Jan 29, 2025

What type of PR is this?
Feature

What does this PR do? Why is it needed?
Enables pre-commit git hooks which execute specific commands before each commit. This feature streamlines the development process by catching and fixing common issues, such as import errors and formatting problems, early on.

Other notes for review
To enable this feature, first we need to install pre-commit cli:

pip install pre-commit

Then install pre-commit hooks for prysm repo:

cd /PATH/TO/PRYSM
pre-commit install

The above commands are only run once while installing. After this, these git hooks will run everytime you commit.

Acknowledgements

@dB2510 dB2510 requested a review from a team as a code owner January 29, 2025 14:00
@dB2510 dB2510 requested review from potuz, rkapka and nisdas January 29, 2025 14:00
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