kou commented on code in PR #46552:
URL: https://github.com/apache/arrow/pull/46552#discussion_r2105550541
##########
.pre-commit-config.yaml:
##########
@@ -121,6 +110,43 @@ repos:
alias: matlab-cpp-format
files: >-
^matlab/src/cpp/
+ - repo: https://github.com/hhatto/autopep8
+ rev: v2.3.2
+ hooks:
+ - id: autopep8
+ name: Python Format
+ alias: python-format
+ args:
+ - "--global-config"
+ - "python/setup.cfg"
+ - "--ignore-local-config"
+ - "--in-place"
Review Comment:
Yes.
pre-commit shows diff on format error. So autopep8 doesn't need to show diff
by itself.
--
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]