Skip to content

Move cpplint check to pre-commit #40278

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

Merged

Conversation

klssmith
Copy link
Contributor

@klssmith klssmith commented Mar 6, 2021

Currently, cpplint runs from https://github.com/pandas-dev/pandas/blob/master/ci/code_checks.sh
However, cpplint have a pre-commit hook which can be used.

@MarcoGorelli MarcoGorelli self-requested a review March 6, 2021 17:52
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @klssmith , looks good, there's just a conflict from #40277 - could you fetch upstream/master and merge please? If you could also make sure the hook is in alphabetical order (as the rest now are) that'd be great 👍

Currently, cpplint runs from https://github.com/pandas-dev/pandas/blob/master/ci/code_checks.sh
However, cpplint have a pre-commit hook which can be used.
@klssmith klssmith force-pushed the move-cpplint-to-pre-commit branch from c70aae7 to cb94b4e Compare March 6, 2021 18:04
@klssmith
Copy link
Contributor Author

klssmith commented Mar 6, 2021

Thanks @MarcoGorelli I've changed the order and rebased now

@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Mar 6, 2021
@MarcoGorelli MarcoGorelli added this to the 1.3 milestone Mar 6, 2021
@MarcoGorelli MarcoGorelli self-requested a review March 6, 2021 20:24
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @klssmith, I tried running this locally and confirm it works as expected

@MarcoGorelli MarcoGorelli merged commit 5ef4159 into pandas-dev:master Mar 7, 2021
@klssmith klssmith deleted the move-cpplint-to-pre-commit branch March 8, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants