-
Notifications
You must be signed in to change notification settings - Fork 37
Add pre-commit config #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
fccea0e
to
6adc9df
Compare
per request from apache#15 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
6adc9df
to
046430a
Compare
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.
Love it!
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.
just a minor nit but LGTM. Thanks for the work @zhjwpku
Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
@Fokko @raulcd there is startup error, do you have any experience on this? |
Oh, it seems pre-commit is not an allowed GH action to use, yes the snippet you shared looks good to me. That's more or less how we do it in Arrow: https://github.com/apache/arrow/blob/main/.github/workflows/dev.yml#L56-L67 edit: On another note we could ask infra to whitelist the action but that might take some time. |
Yeah, I just copied that from Arrow with some reduction.
Do you mean apache infra or github infra? I think we can go the Arrow way first and change to pre-commit action after infra whitelist it. |
Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Apache Infra |
Cool, I've raised an issue: https://issues.apache.org/jira/browse/INFRA-26378 |
Should we also add some instructions on how to use |
It got approved :) |
Still got a startup error: https://github.com/apache/iceberg-cpp/actions/runs/12384969557, maybe we should just wait for some time ;( |
I've added some linting instructions to Contribute section of README.md, please check if that is adequate. |
Hi @Fokko, I see the comment that the pre-commit/action@3.0.1 has been whitelisted, do i need to take any further actions? |
@zhjwpku no action needed, let me get this in |
It seems that pre-commit check never run successfully: https://github.com/apache/iceberg-cpp/actions/workflows/pre-commit.yml. I saw the same thing with cpp-linter-action: https://issues.apache.org/jira/browse/INFRA-26318 |
Yeah, I see that too, not sure how the infra works, any chance @Fokko take a look at this? |
Apache allow-lists GitHub actions to use. I think for arrow-adbc I've just manually installed and run pre-commit instead of using the dedicated action. |
But https://issues.apache.org/jira/browse/INFRA-26378 seems whitelists the pre-commit action. Anyway, if we find that doesn't work in the end, I will file a PR changing to the arrow way. |
I have replied to the JIRA ticket. I guess it might have some misconfigurations. |
Looks like an issue on the INFRA end? For PyIceberg we also just install pre-commit and this works just as well |
Yes, they have confirmed that there was a typo. Now it works: https://github.com/apache/iceberg-cpp/actions/runs/12512760344 |
No description provided.