Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev][C++][Python][R] Use pre-commit for clang-format #40586

Closed
kou opened this issue Mar 16, 2024 · 1 comment
Closed

[Dev][C++][Python][R] Use pre-commit for clang-format #40586

kou opened this issue Mar 16, 2024 · 1 comment

Comments

@kou
Copy link
Member

kou commented Mar 16, 2024

Describe the enhancement requested

We can use https://github.com/pre-commit/mirrors-clang-format for this.

Component(s)

C++, Developer Tools, Python, R

kou added a commit that referenced this issue Mar 28, 2024
### Rationale for this change

We can run `clang-format` easily than `archery lint` by using `pre-commit`:

* We don't need to install `clang-format-14` separately because `pre-commit` prepare it automatically.
* We don't need to run `cmake` to run `clang-format-14`. 

### What changes are included in this PR?

Add `clang-format` related `pre-commit` configurations.

This doesn't change `archery lint` because our `pre-commit` configurations can't replace `archery lint` entirely yet.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #40586

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou
Copy link
Member Author

kou commented Mar 28, 2024

Issue resolved by pull request 40587
#40587

@kou kou added this to the 16.0.0 milestone Mar 28, 2024
@kou kou closed this as completed Mar 28, 2024
tolleybot pushed a commit to tmct/arrow that referenced this issue May 2, 2024
…apache#40587)

### Rationale for this change

We can run `clang-format` easily than `archery lint` by using `pre-commit`:

* We don't need to install `clang-format-14` separately because `pre-commit` prepare it automatically.
* We don't need to run `cmake` to run `clang-format-14`. 

### What changes are included in this PR?

Add `clang-format` related `pre-commit` configurations.

This doesn't change `archery lint` because our `pre-commit` configurations can't replace `archery lint` entirely yet.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40586

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue May 25, 2024
…apache#40587)

### Rationale for this change

We can run `clang-format` easily than `archery lint` by using `pre-commit`:

* We don't need to install `clang-format-14` separately because `pre-commit` prepare it automatically.
* We don't need to run `cmake` to run `clang-format-14`. 

### What changes are included in this PR?

Add `clang-format` related `pre-commit` configurations.

This doesn't change `archery lint` because our `pre-commit` configurations can't replace `archery lint` entirely yet.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40586

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant