Skip to content

ci: integrate clang-format lint into pre-commit hooks#4390

Merged
lvhan028 merged 1 commit intoInternLM:mainfrom
windreamer:clang-format-lint
Mar 4, 2026
Merged

ci: integrate clang-format lint into pre-commit hooks#4390
lvhan028 merged 1 commit intoInternLM:mainfrom
windreamer:clang-format-lint

Conversation

@windreamer
Copy link
Copy Markdown
Collaborator

Motivation

It is annoying to fix clang-format lint each time without pre-commit hooks.

Modification

Integrate clang-format to pre-commit hooks.

Copilot AI review requested due to automatic review settings March 3, 2026 04:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR integrates clang-format linting into the pre-commit hooks to streamline the developer workflow, replacing the separate GitHub Actions step.

Changes:

  • Adds a clang-format pre-commit hook targeting C/C++/CUDA files under src/
  • Removes the standalone DoozyX/clang-format-lint-action step from the CI lint workflow

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.pre-commit-config.yaml Adds the mirrors-clang-format hook at v11.1.0 scoped to src/
.github/workflows/lint.yml Removes the old dedicated clang-format GitHub Actions step, now covered by pre-commit run --all-files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lvhan028 lvhan028 merged commit a341bf3 into InternLM:main Mar 4, 2026
7 checks passed
@windreamer windreamer deleted the clang-format-lint branch March 4, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants