-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Pre-Commit #4915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SteveMacenski
merged 17 commits into
ros-navigation:main
from
Nils-ChristianIseke:precommit
Mar 24, 2025
Merged
Pre-Commit #4915
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
99578bd
Add pre-commit
Nils-ChristianIseke 4c32da8
Merge remote-tracking branch 'origin/main' into precommit
Nils-ChristianIseke 7aa81c1
Add codespell workflow
Nils-ChristianIseke 035db98
Codespell write_changes=false. As otherwise CI does not fail.
Nils-ChristianIseke 91e8bc5
Configure isort
Nils-ChristianIseke d94737f
add precommit
Nils-ChristianIseke 5377b65
Introducing some issues.
Nils-ChristianIseke 194fc4c
Revert "Introducing some issues."
Nils-ChristianIseke 0e886d2
Removing pre-commit workflow.
Nils-ChristianIseke 39adf59
Fix formatting error
Nils-ChristianIseke 8a7ca39
Merge remote-tracking branch 'origin/main' into precommit
Nils-ChristianIseke b375091
Change v31 to v32
Nils-ChristianIseke 6c606a7
Revert "Merge remote-tracking branch 'origin/main' into precommit"
Nils-ChristianIseke 37cc377
Merge remote-tracking branch 'origin/main' into precommit
Nils-ChristianIseke cf23375
Rm submodule
Nils-ChristianIseke eb61870
Merge remote-tracking branch 'origin/main' into precommit
Nils-ChristianIseke 360e96f
pre-commit run --all after merge
Nils-ChristianIseke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -460,4 +460,4 @@ | |
| "direction": "row", | ||
| "splitPercentage": 74.87855655794587 | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1099,4 +1099,4 @@ | |
|
|
||
| .markdown-body ::-webkit-calendar-picker-indicator { | ||
| filter: invert(50%); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Codespell | ||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| codespell: | ||
| name: Run codespell | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install codespell | ||
| run: pip install codespell | ||
| - name: Run codespell | ||
| run: codespell --toml ./tools/pyproject.toml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,4 +69,3 @@ Session.vim | |
|
|
||
| # Vim Temporary | ||
| .netrwhist | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
|
|
||
| # To use: | ||
SteveMacenski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # | ||
| # pre-commit run -a | ||
| # | ||
| # Or: | ||
| # | ||
| # pre-commit install # (runs every time you commit in git) | ||
| # | ||
| # To update this file: | ||
| # | ||
| # pre-commit autoupdate | ||
| # | ||
| # See https://github.com/pre-commit/pre-commit | ||
| exclude: ".pgm$|.svg$" | ||
SteveMacenski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: check-added-large-files | ||
| - id: check-ast | ||
| - id: check-case-conflict | ||
| - id: check-merge-conflict | ||
| - id: check-symlinks | ||
| - id: check-xml | ||
| - id: check-yaml | ||
| args: ["--allow-multiple-documents"] | ||
| - id: debug-statements | ||
| - id: end-of-file-fixer | ||
| - id: mixed-line-ending | ||
| - id: trailing-whitespace | ||
| exclude_types: [rst] | ||
| - id: fix-byte-order-marker | ||
| - repo: https://github.com/pycqa/isort | ||
| rev: 6.0.1 | ||
| hooks: | ||
| - id: isort | ||
| args: ["tools/pyproject.toml"] | ||
| name: isort (python) | ||
|
|
||
| - repo: https://github.com/codespell-project/codespell | ||
| rev: v2.4.1 | ||
| hooks: | ||
| - id: codespell | ||
| additional_dependencies: | ||
| - tomli | ||
| args: | ||
| [--toml=./tools/pyproject.toml] | ||
| - repo: https://github.com/python-jsonschema/check-jsonschema | ||
| rev: 0.31.1 | ||
| hooks: | ||
| - id: check-github-workflows | ||
| args: ["--verbose"] | ||
| - id: check-github-actions | ||
| args: ["--verbose"] | ||
| - id: check-dependabot | ||
| args: ["--verbose"] | ||
| - repo: local | ||
| hooks: | ||
| - id: ament_lint_cmake | ||
| name: ament_lint_cmake | ||
| description: Check CMake code style using cmakelint. | ||
| language: system | ||
| types: [cmake] | ||
| entry: ament_lint_cmake | ||
| - id: ament_cpplint | ||
| name: ament_cpplint | ||
| description: Code style checking using cpplint. | ||
| language: system | ||
| types: [c++] | ||
| entry: ament_cpplint | ||
| - id: ament_uncrustify | ||
| name: ament_uncrustify | ||
| description: Code style checking using uncrustify. | ||
| language: system | ||
| types: [c++] | ||
| args: ["--reformat"] | ||
| entry: ament_uncrustify | ||
| - id: ament_xmllint | ||
| name: ament_xmllint | ||
| description: Check XML markup using xmllint. | ||
| language: system | ||
| types: [xml] | ||
| entry: ament_xmllint | ||
| - id: ament_flake8 | ||
| name: ament_flake8 | ||
| description: Check Python code style using flake8. | ||
| language: system | ||
| types: [python] | ||
| entry: ament_flake8 | ||
| - id: ament_pep257 | ||
| name: ament_pep257 | ||
| description: Check Python code style using pep257. | ||
| language: system | ||
| types: [python] | ||
| entry: ament_pep257 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,4 +20,4 @@ TODO: gazebo example with gzweb | |
|
|
||
| # References | ||
|
|
||
| TODO: links to more info | ||
| TODO: links to more info | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,4 +13,3 @@ The Nav2 system is targeting the following use cases: | |
|
|
||
| ## Stretch Target | ||
| 3D Navigation - Drones | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
|
|
||
| // This was automativally generated by cmake | ||
| namespace nav2::details | ||
| namespace nav2::details | ||
| { | ||
| const char* BT_BUILTIN_PLUGINS = "@plugin_libs@"; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end-of-file-fixerstill fixesnav2_costmap_2d/test/integration/CMakeLists.txtand.gitignorefor me. Doesn't it for you?ament_flake8also complains about files under the foldertools- I guess it is skipped in the CI so maybe also skip this folder with pre-commit?