Skip to content

Add pre-commit configuration#30

Merged
aobolensk merged 2 commits into
mainfrom
codex/add-pre-commit-configuration
Jul 13, 2025
Merged

Add pre-commit configuration#30
aobolensk merged 2 commits into
mainfrom
codex/add-pre-commit-configuration

Conversation

@aobolensk
Copy link
Copy Markdown
Owner

@aobolensk aobolensk commented Jul 13, 2025

Add a .pre-commit-config.yaml with hooks for clang-format, yamllint and flake8

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@aobolensk aobolensk requested a review from Copilot July 13, 2025 13:34
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 adds a new .pre-commit-config.yaml to enforce consistent formatting and linting for C/C++ and Python files.

  • Add pre-commit-hooks for trimming trailing whitespace and fixing end-of-file newlines
  • Include yamllint, clang-format, and flake8 hooks pinned to specific versions
  • Configure clang-format to use the project’s style file and limit it to C/C++ source/header extensions
Comments suppressed due to low confidence (2)

.pre-commit-config.yaml:3

  • The tag v5.0.0 for pre-commit-hooks may not exist or could change; please verify that this release is published or pin to a known commit SHA to avoid breakages during hook installation.
    rev: v5.0.0

.pre-commit-config.yaml:3

  • [nitpick] Consider pinning each hook to a full-length commit SHA rather than a floating tag to ensure reproducible hook versions across environments.
    rev: v5.0.0

@aobolensk aobolensk merged commit 1971e27 into main Jul 13, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants