|
| 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 |
1 | 6 | ci:
|
2 | 7 | autofix_commit_msg: "style(pre-commit): autofix"
|
3 |
| - autoupdate_commit_msg: "ci(pre-commit): autoupdate" |
| 8 | + # we already have our own daily update mechanism, we set this to quarterly |
| 9 | + autoupdate_schedule: quarterly |
| 10 | + autoupdate_commit_msg: "ci(pre-commit): quarterly autoupdate" |
4 | 11 |
|
5 | 12 | repos:
|
6 | 13 | - repo: https://github.com/pre-commit/pre-commit-hooks
|
7 |
| - rev: v4.4.0 |
| 14 | + rev: v5.0.0 |
8 | 15 | hooks:
|
9 | 16 | - id: check-json
|
10 | 17 | - id: check-merge-conflict
|
11 | 18 | - id: check-toml
|
12 | 19 | - id: check-xml
|
13 | 20 | - id: check-yaml
|
| 21 | + args: [--unsafe] |
14 | 22 | - id: detect-private-key
|
15 | 23 | - id: end-of-file-fixer
|
16 | 24 | - id: mixed-line-ending
|
17 | 25 | - id: trailing-whitespace
|
18 | 26 | args: [--markdown-linebreak-ext=md]
|
19 | 27 |
|
20 | 28 | - repo: https://github.com/igorshubovych/markdownlint-cli
|
21 |
| - rev: v0.34.0 |
| 29 | + rev: v0.43.0 |
22 | 30 | hooks:
|
23 | 31 | - id: markdownlint
|
24 | 32 | args: [-c, .markdownlint.yaml, --fix]
|
25 | 33 |
|
26 | 34 | - repo: https://github.com/pre-commit/mirrors-prettier
|
27 |
| - rev: v3.0.0-alpha.9-for-vscode |
| 35 | + rev: v4.0.0-alpha.8 |
28 | 36 | hooks:
|
29 | 37 | - id: prettier
|
30 | 38 |
|
31 | 39 | - repo: https://github.com/adrienverge/yamllint
|
32 |
| - rev: v1.31.0 |
| 40 | + rev: v1.35.1 |
33 | 41 | hooks:
|
34 | 42 | - id: yamllint
|
35 | 43 |
|
36 | 44 | - repo: https://github.com/tier4/pre-commit-hooks-ros
|
37 |
| - rev: v0.8.0 |
| 45 | + rev: v0.10.0 |
38 | 46 | hooks:
|
| 47 | + - id: flake8-ros |
| 48 | + - id: prettier-xacro |
| 49 | + - id: prettier-launch-xml |
39 | 50 | - id: prettier-package-xml
|
| 51 | + - id: ros-include-guard |
40 | 52 | - id: sort-package-xml
|
41 | 53 |
|
42 |
| -exclude: .svg |
| 54 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 55 | + rev: v0.10.0.1 |
| 56 | + hooks: |
| 57 | + - id: shellcheck |
| 58 | + |
| 59 | + - repo: https://github.com/scop/pre-commit-shfmt |
| 60 | + rev: v3.10.0-2 |
| 61 | + hooks: |
| 62 | + - id: shfmt |
| 63 | + args: [-w, -s, -i=4] |
| 64 | + |
| 65 | + - repo: https://github.com/pycqa/isort |
| 66 | + rev: 5.13.2 |
| 67 | + hooks: |
| 68 | + - id: isort |
| 69 | + |
| 70 | + - repo: https://github.com/psf/black |
| 71 | + rev: 24.10.0 |
| 72 | + hooks: |
| 73 | + - id: black |
| 74 | + args: [--line-length=100] |
| 75 | + |
| 76 | + - repo: https://github.com/pre-commit/mirrors-clang-format |
| 77 | + rev: v19.1.4 |
| 78 | + hooks: |
| 79 | + - id: clang-format |
| 80 | + types_or: [c++, c, cuda] |
| 81 | + |
| 82 | + - repo: https://github.com/cpplint/cpplint |
| 83 | + rev: 2.0.0 |
| 84 | + hooks: |
| 85 | + - id: cpplint |
| 86 | + args: [--quiet] |
| 87 | + exclude: .cu |
| 88 | + |
| 89 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 90 | + rev: 0.30.0 |
| 91 | + hooks: |
| 92 | + - id: check-metaschema |
| 93 | + files: ^.+/schema/.*schema\.json$ |
| 94 | + |
| 95 | + - repo: local |
| 96 | + hooks: |
| 97 | + - id: prettier-svg |
| 98 | + name: prettier svg |
| 99 | + description: Apply Prettier with plugin-xml to svg. |
| 100 | + entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore |
| 101 | + language: node |
| 102 | + files: .svg$ |
| 103 | + additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"] |
| 104 | + |
| 105 | + - repo: https://github.com/AleksaC/hadolint-py |
| 106 | + rev: v2.12.1b3 |
| 107 | + hooks: |
| 108 | + - id: hadolint |
| 109 | + exclude: .svg$ |
0 commit comments