Skip to content

treewide: Use pre-commit utility and replace checkstyle.py#69

Merged
naushir merged 1 commit intomainfrom
pre-commit
Apr 10, 2026
Merged

treewide: Use pre-commit utility and replace checkstyle.py#69
naushir merged 1 commit intomainfrom
pre-commit

Conversation

@naushir
Copy link
Copy Markdown
Collaborator

@naushir naushir commented Apr 10, 2026

Replace the custom checkstyle.py script with a pre-commit configuration that runs clang-format for C/C++, ruff check and ruff format for Python, shellcheck for shell scripts, and gitlint for commit messages.

Update the GitHub Actions style checker workflow to use the pre-commit action instead of running checkstyle.py and ruff separately.

Apply formatting fixes across the codebase to conform to the updated clang-format and ruff rules. Add a pre-commit-hook wrapper script in utils/ that runs pre-commit with --show-diff-on-failure.

Replace the custom checkstyle.py script with a pre-commit configuration
that runs clang-format for C/C++, ruff check and ruff format for Python,
shellcheck for shell scripts, and gitlint for commit messages.

Update the GitHub Actions style checker workflow to use the pre-commit
action instead of running checkstyle.py and ruff separately.

Apply formatting fixes across the codebase to conform to the updated
clang-format and ruff rules. Add a pre-commit-hook wrapper script in
utils/ that runs pre-commit with --show-diff-on-failure.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@naushir naushir merged commit 7247c26 into main Apr 10, 2026
2 checks passed
@naushir naushir deleted the pre-commit branch April 10, 2026 07:59
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.

1 participant