Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
Language: Cpp
BasedOnStyle: Google
Expand Down
11 changes: 8 additions & 3 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

version: 2
updates:
- package-ecosystem: github-actions
directory: /
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
schedule:
interval: daily
interval: monthly
open-pull-requests-limit: 1
labels:
- bot
- github-actions
- tag:bot
- type:github-actions
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
agnocast_enabled: [0, 1]
exclude:
- rosdistro: jazzy
agnocast_enabled: 1 # Agnocast does not yet support Jazzy
agnocast_enabled: 1 # Agnocast does not yet support Jazzy
env:
CCACHE_DIR: /root/.ccache
CC: /usr/lib/ccache/gcc
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends-${{ matrix.rosdistro }}.repos
cmake-build-type: Debug # Faster compilation than Release
cmake-build-type: Debug # Faster compilation than Release

- name: Show ccache stats after build
if: steps.cache-analysis.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
agnocast_enabled: [0, 1]
exclude:
- rosdistro: jazzy
agnocast_enabled: 1 # Agnocast does not yet support Jazzy
agnocast_enabled: 1 # Agnocast does not yet support Jazzy
env:
CCACHE_DIR: /root/.ccache
CCACHE_SIZE: 1G # The GitHub cache action allows for 10G but the runners' disk space is limited
CCACHE_SIZE: 1G # The GitHub cache action allows for 10G but the runners' disk space is limited
CC: /usr/lib/ccache/gcc
CXX: /usr/lib/ccache/g++
AGNOCAST_ENABLED: ${{ matrix.agnocast_enabled }}
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/pre-commit-optional.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: pre-commit-optional

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit-optional:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/semantic-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: semantic-pull-request

on:
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/spell-check-differential.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: spell-check-differential

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
spell-check-differential:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run spell-check
uses: autowarefoundation/autoware-github-actions/spell-check@v1
with:
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
dict-packages: |
https://github.com/autowarefoundation/autoware-spell-check-dict
https://github.com/tier4/cspell-dicts
23 changes: 12 additions & 11 deletions .github/workflows/sync-files.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: sync-files

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
check-secret:
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
secrets:
secret: ${{ secrets.APP_ID }}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sync-files:
needs: check-secret
if: ${{ needs.check-secret.outputs.set == 'true' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
Expand All @@ -28,6 +29,6 @@ jobs:
with:
token: ${{ steps.generate-token.outputs.token }}
pr-labels: |
bot
sync-files
tag:bot
tag:sync-files
auto-merge-method: squash
6 changes: 1 addition & 5 deletions .markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"aliveStatusCodes": [
200,
206,
403
],
"aliveStatusCodes": [200, 206, 403],
"ignorePatterns": [
{
"pattern": "^http://localhost"
Expand Down
6 changes: 6 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md for all rules.
default: true
MD013: false
Expand All @@ -7,5 +11,7 @@ MD029:
style: ordered
MD033: false
MD041: false
MD045: false
MD046: false
MD049: false
MD059: false
12 changes: 11 additions & 1 deletion .pre-commit-config-optional.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

# https://pre-commit.ci/#configuration
ci:
autofix_commit_msg: "style(pre-commit-optional): autofix"
autoupdate_schedule: quarterly
autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate"

repos:
- repo: https://github.com/tcort/markdown-link-check
rev: v3.11.2
rev: v3.14.2
hooks:
- id: markdown-link-check
args: [--quiet, --config=.markdown-link-check.json]
74 changes: 46 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

# https://pre-commit.ci/#configuration
ci:
autofix_commit_msg: "ci(pre-commit): autofix"
autoupdate_commit_msg: "ci(pre-commit): autoupdate"
autofix_commit_msg: "style(pre-commit): autofix"
autoupdate_schedule: quarterly
autoupdate_commit_msg: "ci(pre-commit): quarterly autoupdate"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -11,15 +17,15 @@ repos:
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
args: [--unsafe]
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
rev: v0.47.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]
Expand All @@ -35,10 +41,19 @@ repos:
hooks:
- id: yamllint

- repo: https://github.com/autowarefoundation/autoware-guideline-check
rev: 0.2.0
hooks:
- id: check-package-depends

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.10.2
hooks:
- id: flake8-ros
- id: prettier-xacro
- id: prettier-launch-xml
- id: prettier-package-xml
- id: ros-include-guard
- id: sort-package-xml

- repo: https://github.com/shellcheck-py/shellcheck-py
Expand All @@ -53,45 +68,48 @@ repos:
args: [-w, -s, -i=4]

- repo: https://github.com/pycqa/isort
rev: 8.0.1
rev: 7.0.0
hooks:
- id: isort
args: [--profile=black, --line-length=100]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.0
rev: 26.1.0
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
[
flake8-blind-except,
flake8-builtins,
flake8-class-newline,
flake8-comprehensions,
flake8-deprecated,
flake8-docstrings,
flake8-import-order,
flake8-quotes,
]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.0
rev: v21.1.8
hooks:
- id: clang-format
types_or: [c++, c, cuda, proto, textproto]
types_or: [c++, c, cuda]

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

exclude: .svg
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.2
hooks:
- id: check-metaschema
files: ^.+/schema/.*schema\.json$

- repo: local
hooks:
- id: prettier-svg
name: prettier svg
description: Apply Prettier with plugin-xml to svg.
entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
language: node
files: .svg$
additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]

- repo: https://github.com/AleksaC/hadolint-py
rev: v2.14.0
hooks:
- id: hadolint
exclude: .svg$
7 changes: 5 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.yaml
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

*.param.yaml
*.rviz
*.json
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

printWidth: 100
tabWidth: 2
overrides:
Expand Down
13 changes: 7 additions & 6 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

extends: default

ignore: |
*.param.yaml

rules:
braces:
level: error
Expand All @@ -10,16 +17,10 @@ rules:
document-start:
level: error
present: false # Don't need document start markers
ignore:
- .clang-format # Needs '---' between languages
line-length: disable # Delegate to Prettier
truthy:
level: error
check-keys: false # To allow 'on' of GitHub Actions
quoted-strings:
level: error
required: only-when-needed # To keep consistent style
indentation:
spaces: consistent
indent-sequences: true
check-multi-line-strings: false
Loading
Loading