-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove trailing-whitespace #5203
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
Conversation
fujitatomoya
left a comment
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.
@leander-dsouza thanks for the PR.
IMO this is nice to have to have automated github action for pre-commit tool, that actually fixes some styles with this PR. I think we could aim small and miss small to enable this pre-commit github action for some repositories as 1st step. and then, we could have centralized github action for pre-commit and used by each repository.
before further development, i would like to bring this topic to ROS Project Management Committee meeting to get more feedback from other committers and maintainers. please let me have some time to get back to you on this.
btw, i think title of this PR is kinda misleading? precisely it could be more like Add pre-commit github action, not git pre-commit hook? at least, this PR does not push that to the developer's local environment.
|
Thank you for the feedback, @fujitatomoya. |
|
Not sure about other repos (e.g., ros2/rclcpp), but I think this makes sense for this repo. |
|
we had discussion on this in last PMC meeting, and it turned out that there are some security concerns to use no strong consensus for now, but general agreement to explore alternative implementations (e.g., shell scripts, Python integrations). i thought that probably we can only use official at this moment, we can remove |
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
|
Thank you for the explanation @fujitatomoya :) |
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> (cherry picked from commit 6e5a588) # Conflicts: # source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> (cherry picked from commit 6e5a588) # Conflicts: # source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst
Description
I have added the following hooks as part of the pre-commit:
end-of-file-fixermixed-line-endingtrailing-whitespaceThis prevents empty whitespace and additional newlines from registering as a separate commit during development.
Additional Information
codespellandsphinx-lintinto the pre-commit, hence simplifying the workflow.