-
Notifications
You must be signed in to change notification settings - Fork 3.8k
GH-46547: [CI][Dev][R] Use pre-commit for lintr #46581
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
|
|
The minimum supported version failure is spurious, but #46491 removes that anyway. |
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.
I'm good with this, we also might consider adding air to fix any linting issues as well (we can + should probably do that separately since we will need to reformat with air in one big change).
OK. I've rebased on main and opened a new issue for Air: #46592 |
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.
Nice!
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 1943911. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them. |
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.
I believe the tools
directory is distributed as part of the source R package and is generally intended to be used to include files for use during source installation12.
Since this script is used during development and is not needed during installation, probably it should be moved to a directory that is not included in the source R package (and is listed in .Rbuildignore
).
If I understand correctly, the same reason why files like list.sh
are not included in the subdirectory for now.
Footnotes
-
If your configure script needs auxiliary files, it is recommended that you ship them in a tools directory (as R itself does).https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Configure-and-cleanup-1 ↩
-
tools/: auxiliary files needed during configuration, usually found in the company of a configure script. https://r-pkgs.org/misc.html#other-directories ↩
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.
Good catch.
Could you open a new issue for it and discuss better location in the issue?
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.
Sure. #46661
Rationale for this change
We want to migrate to pre-commit from
archery lint
.What changes are included in this PR?
Use pre-commit for lintr against
r/
.This doesn't use https://github.com/lorenzwalthert/precommit because it doesn't include cyclocomp that we need.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.