feat: enhance CI/CD pipeline with pre-commit hooks and linting checks #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request resolves #28 and introduces improvements to code quality enforcement and developer workflow by enhancing formatting and linting automation. The changes ensure that code is consistently checked and formatted using pre-commit hooks and CI jobs, making it easier to maintain code standards across the project.
Pre-commit and Code Quality Automation:
pre-commithooks for bothclang-formatandclang-tidy, configured to run on pre-push, and updated the.pre-commit-config.yamlto use local scripts for formatting and linting. (.pre-commit-config.yaml).devcontainer/devcontainer.json)README.mdinstructing developers to install pre-commit hooks for code quality checks. (README.md)Continuous Integration Enhancements:
.github/workflows/ci.yml)Script Improvements:
scripts/format.shto support a--checkmode for verifying formatting without modifying files, and integrated this into both CI and pre-commit workflows. (scripts/format.sh) [1] [2]