Skip to content

Add pre-commit formatting checks and CI job - #9

Merged
rigtorp merged 1 commit into
masterfrom
ci/add-pre-commit
Nov 14, 2026
Merged

rigtorp merged 1 commit into
masterfrom
ci/add-pre-commit

Conversation

@rigtorp

@rigtorp rigtorp commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add .pre-commit-config.yaml with clang-format (C/C++) and pre-commit-hooks (check-json, pretty-format-json, check-yaml, end-of-file-fixer, trailing-whitespace)
  • Add a pre-commit job to .github/workflows/ci.yml
  • Format include/rigtorp/HashMap.h, CMakePresets.json, .clang-format, and .gitignore to satisfy the hooks

Test plan

  • clang-format --dry-run --Werror include/rigtorp/HashMap.h src/*.cpp
  • cmake --preset debug && cmake --build --preset debug --parallel && ctest --preset debug

@rigtorp
rigtorp merged commit bc1879e into master Nov 14, 2026
25 checks passed
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