-
Notifications
You must be signed in to change notification settings - Fork 900
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
Replace local copyright check with pre-commit-hooks verify-copyright #14917
Replace local copyright check with pre-commit-hooks verify-copyright #14917
Conversation
And get all existing files up to date with --batch.
Are the verify-copyright failures due to the changes to files currently in this PR? |
Yes. It appears there's more work to do on the new Edit: I forgot to remove the |
This reverts commit 5a57404.
@KyleFromNVIDIA Is anything more needed here? Please ping ops for a review in Slack if that's the only missing piece. |
Will the new pre-commit hook update correctly for PRs created in past year, but still open this year? I had a similar issue with old copyright script in local pre-commit runs. Old script updated a few files which are not part of the PR. |
The new script will only update files that have actually been changed from the target branch. Not only that, but if a file has its copyright notice updated but has no other changes, the new script will detect the false update and revert 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.
Great work @KyleFromNVIDIA 👍
Any idea why this is failing? |
CI failed due to the ongoing Python 3.11 effort (rapidsai/build-planning#3). We've changed shared-workflows to always pass the 3.11 jobs for now. I'm running CI again. |
@KyleFromNVIDIA This failed again because clicking the "Rerun failed jobs" button does not update the |
/merge |
…1349) This uses the IncludeCategories settings in .clang-format to attempt to enforce our documented #include order in libcuspatial. For discussion, see rapidsai/cudf#15063. This PR uses a subset of the header grouping categories used in that PR. Note that this also updates the pre-commit configuration to check and correct file copyright years. This comes from rapidsai/cudf#14917. @KyleFromNVIDIA can you confirm whether or not it's OK to do this? It seems to be working fine. Closes #1345 Authors: - Mark Harris (https://github.com/harrism) Approvers: - Michael Wang (https://github.com/isVoid) URL: #1349
Description
The local
copyright.py
script is bug-prone. Replace it with a more robust centralized script frompre-commit-hooks
.Checklist