{"id":25778592,"url":"https://github.com/tier4/pre-commit-hooks-ros","last_synced_at":"2025-02-27T06:36:05.832Z","repository":{"id":37199959,"uuid":"399019416","full_name":"tier4/pre-commit-hooks-ros","owner":"tier4","description":"ROS-related hooks for pre-commit","archived":false,"fork":false,"pushed_at":"2025-02-23T00:05:29.000Z","size":107,"stargazers_count":13,"open_issues_count":8,"forks_count":2,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-02-23T01:20:05.029Z","etag":null,"topics":["hooks","pre-commit","ros","ros2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tier4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-23T07:56:41.000Z","updated_at":"2024-10-10T18:32:27.000Z","dependencies_parsed_at":"2023-12-25T19:59:14.390Z","dependency_job_id":"d9178d22-13b3-4f46-a2c7-e19af1b6b73e","html_url":"https://github.com/tier4/pre-commit-hooks-ros","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tier4%2Fpre-commit-hooks-ros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tier4%2Fpre-commit-hooks-ros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tier4%2Fpre-commit-hooks-ros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tier4%2Fpre-commit-hooks-ros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tier4","download_url":"https://codeload.github.com/tier4/pre-commit-hooks-ros/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240990431,"owners_count":19889871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hooks","pre-commit","ros","ros2"],"created_at":"2025-02-27T06:36:05.334Z","updated_at":"2025-02-27T06:36:05.821Z","avatar_url":"https://github.com/tier4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks-ros\n\n[ROS]-related hooks for [pre-commit]\n\n## Usage\n\nWrite your `.pre-commit-config.yaml` as below.\n\n```yaml\nrepos:\n  - repo: https://github.com/tier4/pre-commit-hooks-ros\n    rev: v0.7.0\n    hooks:\n      - id: flake8-ros\n      - id: prettier-xacro\n      - id: prettier-launch-xml\n      - id: prettier-package-xml\n      - id: ros-include-guard\n      - id: sort-package-xml\n```\n\n## Hooks available\n\n### flake8-ros\n\nApply [flake8] with the [ROS 2 settings](https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html#install-development-tools-and-ros-tools).\n\n### prettier-xacro\n\nApply [Prettier] with [plugin-xml] to [xacro].\n\n### prettier-launch-xml\n\nApply [Prettier] with [plugin-xml] to [launch.xml].\n\n### prettier-package-xml\n\nApply [Prettier] with [plugin-xml] to [package.xml].\n\n### ros-include-guard\n\nFix the macro name of include guards.\n\n### sort-package-xml\n\nSort the dependent packages in [package.xml].\nIf you want to exclude a tag from sorting, add `\u003c! -- no format --\u003e` at the beginning of the line.\n\n```xml\n\u003c!-- no format --\u003e \u003cdepend\u003erclcpp\u003c/depend\u003e\n```\n\n\u003c!-- Links --\u003e\n\n[flake8]: https://github.com/PyCQA/flake8\n[launch.xml]: https://design.ros2.org/articles/roslaunch_xml.html\n[package.xml]: https://www.ros.org/reps/rep-0149.html\n[plugin-xml]: https://github.com/prettier/plugin-xml/\n[pre-commit]: https://github.com/pre-commit/pre-commit\n[prettier]: https://prettier.io/\n[ros]: https://ros.org/\n[xacro]: http://wiki.ros.org/xacro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftier4%2Fpre-commit-hooks-ros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftier4%2Fpre-commit-hooks-ros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftier4%2Fpre-commit-hooks-ros/lists"}