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.63k stars 3.56k forks source link

[Dev] Add top-level `.editorconfig` for C++, Python... #44805

Open pitrou opened 15 hours ago

pitrou commented 15 hours ago

Describe the enhancement requested

See https://editorconfig.org/

Some languages such as Python, C++, bash... are used in various parts of our repository, a top-level .editorconfig would help maintain a consistent style at least for the basics (such as indentation).

Component(s)

C++, Developer Tools, Python

pitrou commented 15 hours ago

Thoughts @kou @raulcd @assignUser ?

kou commented 4 hours ago

I'm OK with this but I don't want to maintain .editorconfig too much to align with our clang-format configuration.

If we have .editorconfig, we can remove **/.dir-locals.el added by me. :-)

kou commented 4 hours ago

We should check our style by pre-commit even if we have .editorconfig.