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

Support optional pre-commit hooks #1705

Merged
merged 2 commits into from
Dec 23, 2023
Merged

Conversation

juanitorduz
Copy link
Contributor

For local development, pre-commit hooks are very useful so that the contributor can check the code formatting before every-commit.

For now, this is optional and does not intervene with the CI. In the future, you might want to use the pre-commit configuration as the linter so that everything is in sync and the versions of ruff are not open. See, for example, https://github.com/pymc-labs/pymc-marketing/blob/main/.github/workflows/ci.yml#L25-L26. If you ever decide to go this path I will be happy to support :)

Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woohoo, this would save time dealing with lint issues. thanks!

@fehiepsi fehiepsi merged commit a6693bb into pyro-ppl:master Dec 23, 2023
4 checks passed
@juanitorduz juanitorduz deleted the add_pre_commit branch April 30, 2024 19:03
OlaRonning pushed a commit to aleatory-science/numpyro that referenced this pull request May 6, 2024
* optional pre-commit hooks

* add args
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.

2 participants