Skip to content

Commit 95da560

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

15 files changed

+140
-59
lines changed

.clang-format

Lines changed: 4 additions & 0 deletions
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

.github/dependabot.yaml

Lines changed: 8 additions & 3 deletions
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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
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

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
614
jobs:
715
pre-commit-optional:
8-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
917
steps:
1018
- name: Check out repository
11-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
1220
with:
1321
fetch-depth: 0
1422

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

Lines changed: 4 additions & 0 deletions
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:
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
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

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
614
jobs:
715
spell-check-differential:
8-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
917
steps:
1018
- name: Check out repository
11-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
1220

1321
- name: Run spell-check
1422
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1523
with:
16-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
24+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
25+
dict-packages: |
26+
https://github.com/autowarefoundation/autoware-spell-check-dict
27+
https://github.com/tier4/cspell-dicts

.github/workflows/sync-files.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
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:
48
schedule:
59
- cron: 0 0 * * *
610
workflow_dispatch:
711

8-
jobs:
9-
check-secret:
10-
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
11-
secrets:
12-
secret: ${{ secrets.APP_ID }}
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
14+
cancel-in-progress: true
1315

16+
jobs:
1417
sync-files:
15-
needs: check-secret
16-
if: ${{ needs.check-secret.outputs.set == 'true' }}
17-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1819
steps:
1920
- name: Generate token
2021
id: generate-token
21-
uses: tibdex/github-app-token@v1
22+
uses: tibdex/github-app-token@v2
2223
with:
2324
app_id: ${{ secrets.APP_ID }}
2425
private_key: ${{ secrets.PRIVATE_KEY }}
@@ -28,6 +29,6 @@ jobs:
2829
with:
2930
token: ${{ steps.generate-token.outputs.token }}
3031
pr-labels: |
31-
bot
32-
sync-files
32+
tag:bot
33+
tag:sync-files
3334
auto-merge-method: squash

.markdown-link-check.json

Lines changed: 1 addition & 5 deletions
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

Lines changed: 6 additions & 0 deletions
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,7 @@ MD029:
711
style: ordered
812
MD033: false
913
MD041: false
14+
MD045: false
1015
MD046: false
1116
MD049: false
17+
MD059: false

.pre-commit-config-optional.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
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+
autoupdate_schedule: quarterly
9+
autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate"
10+
111
repos:
212
- repo: https://github.com/tcort/markdown-link-check
3-
rev: v3.11.2
13+
rev: v3.14.2
414
hooks:
515
- id: markdown-link-check
616
args: [--quiet, --config=.markdown-link-check.json]

.pre-commit-config.yaml

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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+
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+
autoupdate_schedule: quarterly
9+
autoupdate_commit_msg: "ci(pre-commit): quarterly autoupdate"
410

511
repos:
612
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -11,7 +17,7 @@ repos:
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

Comments
 (0)