Skip to content

Commit 5084f9c

Browse files
tier4-autoware-public-bot[bot]isamu-takagi
andauthoredDec 17, 2022
chore: sync files (#59)
Signed-off-by: GitHub <noreply@github.com> Signed-off-by: GitHub <noreply@github.com> Co-authored-by: isamu-takagi <isamu-takagi@users.noreply.github.com>
1 parent 6270001 commit 5084f9c

8 files changed

+39
-25
lines changed
 

‎.clang-format

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ IncludeCategories:
3333
- Regex: .*_msgs/.*
3434
Priority: 3
3535
CaseSensitive: true
36+
- Regex: .*_srvs/.*
37+
Priority: 3
38+
CaseSensitive: true
3639
# Other Package headers
3740
- Regex: <.*>
3841
Priority: 2

‎.github/workflows/build-and-test-differential.yaml

+12-10
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,12 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
rosdistro:
14-
- galactic
1514
- humble
1615
include:
17-
- rosdistro: galactic
18-
container: ros:galactic
19-
build-depends-repos: build_depends.repos
2016
- rosdistro: humble
2117
container: ros:humble
2218
build-depends-repos: build_depends.repos
2319
steps:
24-
- name: Cancel previous runs
25-
uses: styfle/cancel-workflow-action@0.11.0
26-
2720
- name: Check out repository
2821
uses: actions/checkout@v3
2922
with:
@@ -64,7 +57,7 @@ jobs:
6457

6558
clang-tidy-differential:
6659
runs-on: ubuntu-latest
67-
container: ros:galactic
60+
container: ros:humble
6861
needs: build-and-test-differential
6962
steps:
7063
- name: Check out repository
@@ -79,11 +72,20 @@ jobs:
7972
id: get-modified-packages
8073
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
8174

75+
- name: Get modified files
76+
id: get-modified-files
77+
uses: tj-actions/changed-files@v34
78+
with:
79+
files: |
80+
**/*.cpp
81+
**/*.hpp
82+
8283
- name: Run clang-tidy
83-
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
84+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
8485
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
8586
with:
86-
rosdistro: galactic
87+
rosdistro: humble
8788
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
89+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
8890
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
8991
build-depends-repos: build_depends.repos

‎.github/workflows/build-and-test.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
rosdistro:
18-
- galactic
1918
- humble
2019
include:
21-
- rosdistro: galactic
22-
container: ros:galactic
23-
build-depends-repos: build_depends.repos
2420
- rosdistro: humble
2521
container: ros:humble
2622
build-depends-repos: build_depends.repos

‎.markdown-link-check.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
{
55
"pattern": "^http://localhost"
66
},
7+
{
8+
"pattern": "^http://127\\.0\\.0\\.1"
9+
},
710
{
811
"pattern": "^https://github.com/.*/discussions/new"
912
}

‎.markdownlint.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ default: true
33
MD013: false
44
MD024:
55
siblings_only: true
6+
MD029:
7+
style: ordered
68
MD033: false
79
MD041: false
810
MD046: false

‎.pre-commit-config-optional.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/tcort/markdown-link-check
3-
rev: v3.10.0
3+
rev: v3.10.3
44
hooks:
55
- id: markdown-link-check
66
args: [--config=.markdown-link-check.json]

‎.pre-commit-config.yaml

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
ci:
2-
autofix_commit_msg: "ci(pre-commit): autofix"
2+
autofix_commit_msg: "style(pre-commit): autofix"
33
autoupdate_commit_msg: "ci(pre-commit): autoupdate"
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.3.0
7+
rev: v4.4.0
88
hooks:
99
- id: check-json
1010
- id: check-merge-conflict
1111
- id: check-toml
1212
- id: check-xml
1313
- id: check-yaml
14+
args: [--unsafe]
1415
- id: detect-private-key
1516
- id: end-of-file-fixer
1617
- id: mixed-line-ending
1718
- id: trailing-whitespace
1819
args: [--markdown-linebreak-ext=md]
1920

2021
- repo: https://github.com/igorshubovych/markdownlint-cli
21-
rev: v0.31.1
22+
rev: v0.32.2
2223
hooks:
2324
- id: markdownlint
2425
args: [-c, .markdownlint.yaml, --fix]
2526

2627
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: v2.7.1
28+
rev: v3.0.0-alpha.4
2829
hooks:
2930
- id: prettier
3031

3132
- repo: https://github.com/adrienverge/yamllint
32-
rev: v1.26.3
33+
rev: v1.28.0
3334
hooks:
3435
- id: yamllint
3536

@@ -60,22 +61,30 @@ repos:
6061
- id: isort
6162

6263
- repo: https://github.com/psf/black
63-
rev: 22.6.0
64+
rev: 22.10.0
6465
hooks:
6566
- id: black
6667
args: [--line-length=100]
6768

6869
- repo: https://github.com/pre-commit/mirrors-clang-format
69-
rev: v14.0.6
70+
rev: v15.0.4
7071
hooks:
7172
- id: clang-format
7273
types_or: [c++, c, cuda]
7374

7475
- repo: https://github.com/cpplint/cpplint
75-
rev: 1.6.0
76+
rev: 1.6.1
7677
hooks:
7778
- id: cpplint
7879
args: [--quiet]
7980
exclude: .cu
8081

81-
exclude: .svg
82+
- repo: local
83+
hooks:
84+
- id: prettier-svg
85+
name: prettier svg
86+
description: Apply Prettier with plugin-xml to svg.
87+
entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
88+
language: node
89+
files: .svg$
90+
additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]

‎.yamllint.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
extends: default
22

33
ignore: |
4-
.clang-tidy
54
*.param.yaml
65
76
rules:

0 commit comments

Comments
 (0)
Please sign in to comment.