apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.56k stars 3.54k forks source link

[Dev] Use pre-commit-hook instead of "archery lint" for all lints #40417

Open kou opened 8 months ago

kou commented 8 months ago

Describe the enhancement requested

We use archery lint ... to run linters. It's convenient because we don't need to know linters details but we need to install archery[lint] and we need to write Python code to add a new linter. They're a bit annoying.

How about using pre-commit https://pre-commit.com/ for all linters? If we use pre-commit:

Note that we already have some pre-commit configuration: https://github.com/apache/arrow/blob/main/.pre-commit-config.yaml

Sub issues:

Component(s)

Developer Tools

lidavidm commented 7 months ago

+1 for pre-commit, which is at least reasonably common across projects these days IMO

vibhatha commented 7 months ago

+1 this is a great initiative.