-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-hooks.yaml
58 lines (53 loc) · 2 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Modified from https://github.com/PyCQA/flake8/blob/463d9b1ce9ee44665f2c6825edd7010ef5dff760/.pre-commit-hooks.yaml
- id: flake8-ros
name: flake8 ros
description: Apply flake8 with the ROS 2 settings.
entry: flake8
language: python
types: [python]
require_serial: true
additional_dependencies:
[
flake8==6.0.0,
flake8-blind-except==0.2.1,
flake8-builtins==2.0.1,
flake8-class-newline==1.6.0,
flake8-comprehensions==3.10.1,
flake8-deprecated==2.0.1,
flake8-docstrings==1.6.0,
flake8-import-order==0.18.2,
flake8-quotes==3.3.2,
]
- id: prettier-xacro
name: prettier xacro
description: Apply Prettier with plugin-xml to xacro.
entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
language: node
files: .xacro$
additional_dependencies: [prettier@2.8.1, "@prettier/plugin-xml@2.2.0"]
- id: prettier-launch-xml
name: prettier launch.xml
description: Apply Prettier with plugin-xml to launch.xml.
entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
language: node
files: launch.xml$
additional_dependencies: [prettier@2.8.1, "@prettier/plugin-xml@2.2.0"]
- id: prettier-package-xml
name: prettier package.xml
description: Apply Prettier with plugin-xml to package.xml.
entry: prettier --write --list-different --ignore-unknown --print-width 1000 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
language: node
files: package.xml$
additional_dependencies: [prettier@2.8.1, "@prettier/plugin-xml@2.2.0"]
- id: ros-include-guard
name: fix include guard
description: Fix the include guard macro name.
entry: ros-include-guard
language: python
files: .*\.(h|hpp)$
- id: sort-package-xml
name: sort package.xml
description: Sort the dependent packages in package.xml.
entry: sort-package-xml
language: python
files: package.xml$