-
Notifications
You must be signed in to change notification settings - Fork 42
ci: introduce a pre-commit check and contributing doc #16
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
Conversation
|
I think there is a back and forth between our local golang versions. @VaishnaviHire |
|
Yeah looks like it. Maybe just updating the go-lint version should suffice. |
|
Looks good to me. Could you briefly elaborate the benefit of pre-commit in addition to Another idea, would to describe in CONTRIBUTING.md how to install it as a local pre-commit hook for git, so that it is automatically called on a Another comment is about the role.yaml file as it still looks weird to me. I wonder whether we should careful go through it and drill it down to the stuff that we really need. E.g. we don't need to list Services, or do we ? But that's a question for another PR. |
As explained in the CONTRIBUTING guide, installing pre-commit locally is optional, it's up to the developers. But it's nice to have a common tool to run locally what the CI does in an all in one fashion. Also, when setup correctly, it will prevent developers from pushing inadequate content and save CI cycles.
This is what
I have the same feeling, but all those things were auto-generated :( |
This CI check replaces the linter action, it has been included into the pre-commit hook. The hook has 2 specialized ones: * the go linter * the generate manifest artifacts You can run pre-commit locally: ``` pre-commit run --all-files ``` You can also install it so it will run before committing code. ``` pre-commit install ``` Signed-off-by: Sébastien Han <seb@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
[odh] Sync changes 2.23
…r digest to 6d5a657 (llamastack#16) Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com> Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
This CI check replaces the linter action, it has been included into the pre-commit hook.
The hook has 2 specialized ones:
You can run pre-commit locally:
You can also install it so it will run before committing code.