1+ # This file is automatically synced from:
2+ # https://github.com/autowarefoundation/sync-file-templates
3+ # To make changes, update the source repository and follow the guidelines in its README.
4+
5+ # https://pre-commit.ci/#configuration
16ci :
2- autofix_commit_msg : " ci(pre-commit): autofix"
3- autoupdate_commit_msg : " ci(pre-commit): autoupdate"
7+ autofix_commit_msg : " style(pre-commit): autofix"
8+ autoupdate_schedule : quarterly
9+ autoupdate_commit_msg : " ci(pre-commit): quarterly autoupdate"
410
511repos :
612 - repo : https://github.com/pre-commit/pre-commit-hooks
1117 - id : check-toml
1218 - id : check-xml
1319 - id : check-yaml
14- args : [--allow-multiple-documents ]
20+ args : [--unsafe ]
1521 - id : detect-private-key
1622 - id : end-of-file-fixer
1723 - id : mixed-line-ending
@@ -35,10 +41,19 @@ repos:
3541 hooks :
3642 - id : yamllint
3743
44+ - repo : https://github.com/autowarefoundation/autoware-guideline-check
45+ rev : 0.2.0
46+ hooks :
47+ - id : check-package-depends
48+
3849 - repo : https://github.com/tier4/pre-commit-hooks-ros
3950 rev : v0.10.2
4051 hooks :
52+ - id : flake8-ros
53+ - id : prettier-xacro
54+ - id : prettier-launch-xml
4155 - id : prettier-package-xml
56+ - id : ros-include-guard
4257 - id : sort-package-xml
4358
4459 - repo : https://github.com/shellcheck-py/shellcheck-py
@@ -53,45 +68,48 @@ repos:
5368 args : [-w, -s, -i=4]
5469
5570 - repo : https://github.com/pycqa/isort
56- rev : 8 .0.1
71+ rev : 7 .0.0
5772 hooks :
5873 - id : isort
74+ args : [--profile=black, --line-length=100]
5975
6076 - repo : https://github.com/psf/black-pre-commit-mirror
6177 rev : 26.1.0
6278 hooks :
6379 - id : black
6480 args : [--line-length=100]
6581
66- - repo : https://github.com/PyCQA/flake8
67- rev : 7.3.0
68- hooks :
69- - id : flake8
70- additional_dependencies :
71- [
72- flake8-blind-except,
73- flake8-builtins,
74- flake8-class-newline,
75- flake8-comprehensions,
76- flake8-deprecated,
77- flake8-docstrings,
78- flake8-import-order,
79- flake8-quotes,
80- ]
81-
8282 - repo : https://github.com/pre-commit/mirrors-clang-format
83- rev : v22 .1.0
83+ rev : v21 .1.8
8484 hooks :
8585 - id : clang-format
86- types_or : [c++, c, cuda, proto, textproto ]
86+ types_or : [c++, c, cuda]
8787
8888 - repo : https://github.com/cpplint/cpplint
8989 rev : 2.0.2
9090 hooks :
9191 - id : cpplint
92- # runtime/arrays uses the name of the variable to determine const-ness.
93- # This does not play well with our naming conventions
94- args : [--quiet, '--filter=-runtime/arrays,-build/c++17,-readability/casting']
92+ args : [--quiet]
9593 exclude : .cu
9694
97- exclude : .svg
95+ - repo : https://github.com/python-jsonschema/check-jsonschema
96+ rev : 0.36.2
97+ hooks :
98+ - id : check-metaschema
99+ files : ^.+/schema/.*schema\.json$
100+
101+ - repo : local
102+ hooks :
103+ - id : prettier-svg
104+ name : prettier svg
105+ description : Apply Prettier with plugin-xml to svg.
106+ entry : prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
107+ language : node
108+ files : .svg$
109+ additional_dependencies : [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]
110+
111+ - repo : https://github.com/AleksaC/hadolint-py
112+ rev : v2.14.0
113+ hooks :
114+ - id : hadolint
115+ exclude : .svg$
0 commit comments