kou commented on code in PR #46686:
URL: https://github.com/apache/arrow/pull/46686#discussion_r2144028933


##########
r/vignettes/developers/workflow.Rmd:
##########
@@ -51,31 +51,19 @@ pkgdown::build_site(preview=TRUE)
 
 ## Styling and linting
 
-### R code
-
-The R code in the package follows [the tidyverse 
style](https://style.tidyverse.org/). On PR submission (and on pushes) our CI 
will run linting and will flag possible errors on the pull request with 
annotations.
+You can automatically adjust our styling and lint by 
[pre-commit](https://pre-commit.com/):
 
-To run the linter locally, install the `{lintr}` package (note, we currently 
use a fork that includes fixes not yet accepted upstream, see how lintr is 
being installed in the file 
[`ci/docker/linux-apt-lint.dockerfile`](https://github.com/apache/arrow/blob/main/ci/docker/linux-apt-lint.dockerfile)
 for the current status) and then run

Review Comment:
   Thanks. You're using Ubuntu 22.04, right?
   
   How about the following?
   
   ```diff
   diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
   index c3835ac0f1..e3e8abdeed 100644
   --- a/.pre-commit-config.yaml
   +++ b/.pre-commit-config.yaml
   @@ -356,7 +356,10 @@ repos:
              ?^swift/gen-protobuffers\.sh$|
              )
      - repo: https://github.com/scop/pre-commit-shfmt
   -    rev: v3.11.0-1
   +    # v3.11.0-1 or later requires pre-commit 3.2.0 or later but Ubuntu
   +    # 22.04 ships pre-commit 2.17.0. We can use update this rev after
   +    # Ubuntu 22.04 reached EOL (June 2027).
   +    rev: v3.10.0-1
        hooks:
          - id: shfmt
            alias: shell
   ```
   
   I've opened #46798 for this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to