Add C++ and CMake pre-commit hooks#568
Conversation
|
Need to remove vortex-auv from here before merging: https://github.com/organizations/vortexntnu/settings/installations/57321089 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #568 +/- ##
=======================================
Coverage 24.01% 24.01%
=======================================
Files 38 38
Lines 2286 2286
Branches 612 612
=======================================
Hits 549 549
Misses 1588 1588
Partials 149 149
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
6feccc6 to
f815477
Compare
Don't need to do this, made a separate config file for the local pre-commit hooks. To run locally: pre-commit run --all-files -c .pre-commit-config-local.yamlCould also be an idea to make a script which runs both |
e44d1b0 to
f394a99
Compare
6c060f2 to
afd6e40
Compare
…ce conflict with clang-format
7058487 to
4e1e52b
Compare
…auv into ci/add-cpp-pre-commit
…plint due to some lines being longer
f128a79 to
53ad5fe
Compare
…ence_filter_utils.hpp
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 32 out of 32 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* ci(pre-commit): add CI workflow for checking pre-commit hooks * ci(pre-commit): add hooks for cpp and CMake * refactor(pre-commit.yml): now uses the workflow on main * docs(README.md): update status badge for pre-commit * refactor(ci): move local hooks into a different config file * docs(README.md): update status badge for pre-commit * refactor(ci): pre-commit.yml now only runs on pull_request and workflow_dispatch * ci(pre-commit-local): ignore build/include_order in ament_cpplint since conflict with clang-format * refactor: fix ament_cpplint and cppcheck warnings * ci(pre-commit-config-local): increase line length to 120 for ament_cpplint due to some lines being longer * refactor: fix ament_cpplint and cppcheck warnings * chore(pre-commit): exclude test dirs from ament_cppcheck to avoid false positives * ci(pre-commit): update workflow to run on push to main and pull_request
* ci(pre-commit): add CI workflow for checking pre-commit hooks * ci(pre-commit): add hooks for cpp and CMake * refactor(pre-commit.yml): now uses the workflow on main * docs(README.md): update status badge for pre-commit * refactor(ci): move local hooks into a different config file * docs(README.md): update status badge for pre-commit * refactor(ci): pre-commit.yml now only runs on pull_request and workflow_dispatch * ci(pre-commit-local): ignore build/include_order in ament_cpplint since conflict with clang-format * refactor: fix ament_cpplint and cppcheck warnings * ci(pre-commit-config-local): increase line length to 120 for ament_cpplint due to some lines being longer * refactor: fix ament_cpplint and cppcheck warnings * chore(pre-commit): exclude test dirs from ament_cppcheck to avoid false positives * ci(pre-commit): update workflow to run on push to main and pull_request
|
🎉 This PR is included in version 2.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.