-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set up pre-commit hooks and added configuration files #1
Conversation
62e4549
to
f9e3dcd
Compare
.pre-commit-config.yaml
Outdated
autoupdate_commit_msg: 'pre-commit: autoupdate hooks' | ||
autofix_prs: false | ||
# docker is not supported on pre-commit.ci | ||
skip: [shellcheck] |
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.
@Al-an-21 CI breaks on this step, let's check whether it's needed here/on this repo
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.
This skip makes sense only if we use shellcheck
later in the hooks. Here we do not use it, so it complains it does not know which hook to skip, since it is not defined.
According to this comment from Paweł, I was under the impression that the setup was correct. However, I’ve noticed that CI is not currently configured for this repository. Clarification on which specific step might be causing issues, as well as any particular requirements for the CI process, would be really helpful. Additionally, I’ve observed similar failures in other PRs, like here, where it also fails. At this point, I’m feeling a bit unsure about the situation and what the appropriate next steps should be. Any guidance or insight would be greatly appreciated. |
What makes you think so?
Error logs from CI are really helpful in this matter: https://results.pre-commit.ci/run/github/884699586/1731079763.yDE45quGRTSrFpXri4k-0g
So you should simply remove this: https://github.com/zarhus/meta-coreboot/pull/1/files#r1834676377 It's been suggested by @artur-rs 4 days ago as a solution to your problem already. Sounds to me like |
I didn't notice the mistake in the config. I wonder why there were no errors when I ran the pre-commit locally. |
Because it is in the
I do not think so. Definitely not at the moment. |
f9e3dcd
to
7a76d18
Compare
.pre-commit-config.yaml
Outdated
|
||
default_install_hook_types: [pre-commit, commit-msg] | ||
|
||
#ci: |
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.
Maybe you shouldn't delete the entire section? Just skip: [shellcheck]
. Also, you should delete it instead of commenting it out
7a76d18
to
31026fe
Compare
Signed-off-by: Alan Ostrowski <[email protected]>
31026fe
to
103b912
Compare
PR introduces pre-commit hooks and updates the layer.conf file to ensure compatibility with the specified Yocto series.