hiroyuki-sato commented on code in PR #45417:
URL: https://github.com/apache/arrow/pull/45417#discussion_r1938872346


##########
.pre-commit-config.yaml:
##########
@@ -141,6 +141,18 @@ repos:
           (
           ?^r/src/arrowExports\.cpp$|
           )
+  - repo: https://github.com/rubocop/rubocop
+    rev: "v1.71.0"
+    hooks:
+      - id: rubocop
+        name: Ruby Format
+        alias: ruby-format
+        args: [--autocorrect]
+        exclude: >-
+          (
+          ?^dev/tasks/homebrew-formulae/.*\.rb$|
+          )
+        files: .*\.rb$

Review Comment:
   I'm not familiar `pre-commit` configuration. I thought you commented 
`exclude` part. But you commented about the `files` part? If so, It seems OK to 
delete that part.
   
   Do you mean this?
   
   ```diff
   diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
   index 8dcbeaece..cc46728b0 100644
   --- a/.pre-commit-config.yaml
   +++ b/.pre-commit-config.yaml
   @@ -152,7 +152,6 @@ repos:
              (
              ?^dev/tasks/homebrew-formulae/.*\.rb$|
              )
   -        files: .*\.rb$
      - repo: https://github.com/cheshirekow/cmake-format-precommit
        rev: v0.6.13
        hooks:
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to