Skip to content

Commit 2b35be9

Browse files
github-actionsgithub-actions[bot]
github-actions
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ad0e988 commit 2b35be9

15 files changed

+125
-57
lines changed

.clang-format

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
26
Language: Cpp
37
BasedOnStyle: Google
@@ -45,6 +49,3 @@ IncludeCategories:
4549
- Regex: '".*"'
4650
Priority: 1
4751
CaseSensitive: true
48-
---
49-
Language: Json
50-
BasedOnStyle: llvm

.github/dependabot.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
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+
15
version: 2
26
updates:
37
- package-ecosystem: github-actions
48
directory: /
9+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
510
schedule:
6-
interval: daily
11+
interval: monthly
712
open-pull-requests-limit: 1
813
labels:
9-
- bot
10-
- github-actions
14+
- tag:bot
15+
- type:github-actions

.github/workflows/pre-commit-optional.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
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+
15
name: pre-commit-optional
26

37
on:
48
pull_request:
59

610
jobs:
711
pre-commit-optional:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216
with:
1317
fetch-depth: 0
1418

.github/workflows/semantic-pull-request.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
name: semantic-pull-request
26

37
on:
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
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+
15
name: spell-check-differential
26

37
on:
48
pull_request:
59

610
jobs:
711
spell-check-differential:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216

1317
- name: Run spell-check
1418
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1519
with:
16-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
20+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
21+
dict-packages: |
22+
https://github.com/autowarefoundation/autoware-spell-check-dict
23+
https://github.com/tier4/cspell-dicts

.github/workflows/sync-files.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
name: sync-files
26

37
on:
@@ -14,11 +18,11 @@ jobs:
1418
sync-files:
1519
needs: check-secret
1620
if: ${{ needs.check-secret.outputs.set == 'true' }}
17-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
1822
steps:
1923
- name: Generate token
2024
id: generate-token
21-
uses: tibdex/github-app-token@v1
25+
uses: tibdex/github-app-token@v2
2226
with:
2327
app_id: ${{ secrets.APP_ID }}
2428
private_key: ${{ secrets.PRIVATE_KEY }}
@@ -28,6 +32,6 @@ jobs:
2832
with:
2933
token: ${{ steps.generate-token.outputs.token }}
3034
pr-labels: |
31-
bot
32-
sync-files
35+
tag:bot
36+
tag:sync-files
3337
auto-merge-method: squash

.markdown-link-check.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"aliveStatusCodes": [
3-
200,
4-
206,
5-
403
6-
],
2+
"aliveStatusCodes": [200, 206, 403],
73
"ignorePatterns": [
84
{
95
"pattern": "^http://localhost"

.markdownlint.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md for all rules.
26
default: true
37
MD013: false
@@ -7,5 +11,6 @@ MD029:
711
style: ordered
812
MD033: false
913
MD041: false
14+
MD045: false
1015
MD046: false
1116
MD049: false

.pre-commit-config-optional.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
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
6+
ci:
7+
autofix_commit_msg: "style(pre-commit-optional): autofix"
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-optional): quarterly autoupdate"
11+
112
repos:
213
- repo: https://github.com/tcort/markdown-link-check
3-
rev: v3.11.2
14+
rev: v3.12.2
415
hooks:
516
- id: markdown-link-check
617
args: [--quiet, --config=.markdown-link-check.json]

.pre-commit-config.yaml

+41-28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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
16
ci:
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+
# 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"
411

512
repos:
613
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -11,15 +18,15 @@ repos:
1118
- id: check-toml
1219
- id: check-xml
1320
- id: check-yaml
14-
args: [--allow-multiple-documents]
21+
args: [--unsafe]
1522
- id: detect-private-key
1623
- id: end-of-file-fixer
1724
- id: mixed-line-ending
1825
- id: trailing-whitespace
1926
args: [--markdown-linebreak-ext=md]
2027

2128
- repo: https://github.com/igorshubovych/markdownlint-cli
22-
rev: v0.44.0
29+
rev: v0.43.0
2330
hooks:
2431
- id: markdownlint
2532
args: [-c, .markdownlint.yaml, --fix]
@@ -28,7 +35,6 @@ repos:
2835
rev: v4.0.0-alpha.8
2936
hooks:
3037
- id: prettier
31-
args: [--no-error-on-unmatched-pattern]
3238

3339
- repo: https://github.com/adrienverge/yamllint
3440
rev: v1.35.1
@@ -38,7 +44,11 @@ repos:
3844
- repo: https://github.com/tier4/pre-commit-hooks-ros
3945
rev: v0.10.0
4046
hooks:
47+
- id: flake8-ros
48+
- id: prettier-xacro
49+
- id: prettier-launch-xml
4150
- id: prettier-package-xml
51+
- id: ros-include-guard
4252
- id: sort-package-xml
4353

4454
- repo: https://github.com/shellcheck-py/shellcheck-py
@@ -53,44 +63,47 @@ repos:
5363
args: [-w, -s, -i=4]
5464

5565
- repo: https://github.com/pycqa/isort
56-
rev: 6.0.0
66+
rev: 5.13.2
5767
hooks:
5868
- id: isort
5969

6070
- repo: https://github.com/psf/black
61-
rev: 25.1.0
71+
rev: 24.10.0
6272
hooks:
6373
- id: black
6474
args: [--line-length=100]
6575

66-
- repo: https://github.com/PyCQA/flake8
67-
rev: 7.1.2
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-
8276
- repo: https://github.com/pre-commit/mirrors-clang-format
83-
rev: v19.1.7
77+
rev: v19.1.5
8478
hooks:
8579
- id: clang-format
80+
types_or: [c++, c, cuda]
8681

8782
- repo: https://github.com/cpplint/cpplint
8883
rev: 2.0.0
8984
hooks:
9085
- id: cpplint
91-
# runtime/arrays uses the name of the variable to determine const-ness.
92-
# This does not play well with our naming conventions
93-
args: [--quiet, '--filter=-runtime/arrays,-build/c++17,-readability/casting']
86+
args: [--quiet]
9487
exclude: .cu
9588

96-
exclude: .svg
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: [[email protected], "@prettier/[email protected]"]
104+
105+
- repo: https://github.com/AleksaC/hadolint-py
106+
rev: v2.12.1b3
107+
hooks:
108+
- id: hadolint
109+
exclude: .svg$

.prettierignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
*.yaml
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+
*.param.yaml
26
*.rviz
3-
*.json

.prettierrc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
printWidth: 100
26
tabWidth: 2
37
overrides:

.yamllint.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
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+
15
extends: default
26

7+
ignore: |
8+
*.param.yaml
9+
310
rules:
411
braces:
512
level: error
@@ -10,16 +17,10 @@ rules:
1017
document-start:
1118
level: error
1219
present: false # Don't need document start markers
13-
ignore:
14-
- .clang-format # Needs '---' between languages
1520
line-length: disable # Delegate to Prettier
1621
truthy:
1722
level: error
1823
check-keys: false # To allow 'on' of GitHub Actions
1924
quoted-strings:
2025
level: error
2126
required: only-when-needed # To keep consistent style
22-
indentation:
23-
spaces: consistent
24-
indent-sequences: true
25-
check-multi-line-strings: false

CPPLINT.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
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+
15
# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120
26
set noparent
37
linelength=100
48
includeorder=standardcfirst
59
filter=-build/c++11 # we do allow C++11
10+
filter=-build/c++17 # we allow <filesystem>
611
filter=-build/namespaces_literals # we allow using namespace for literals
712
filter=-runtime/references # we consider passing non-const references to be ok
813
filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions
914
filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space
15+
filter=-whitespace/newline # we allow the developer to decide about newline at the end of file (it's clashing with clang-format)
1016
filter=-whitespace/parens # we allow closing parenthesis to be on the next line
1117
filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon
1218
filter=-build/header_guard # we automatically fix the names of header guards using pre-commit

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
[flake8]
26
# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_flake8/ament_flake8/configuration/ament_flake8.ini
37
extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,CNL100,E203,E501,Q000

0 commit comments

Comments
 (0)