Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add settings #16

Merged
merged 30 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
defe86e
release v0.4.0
mitsudome-r Sep 18, 2020
103ebbe
Use MkDocs to generate the documentation (#1346)
IshitaTakeshi May 19, 2021
6684e00
Fix layout errors and 404 in the generated documentation (#1348)
kenji-miyake May 20, 2021
ad8f269
adding css and favicons (#1452)
hakuturu583 Jun 10, 2021
f76b06b
Add dependabot (#1561)
KeisukeShima Jul 1, 2021
16fbd56
Change nested_indent for mkdocs (#1639)
kenji-miyake Jul 14, 2021
c824872
Add pre-commit (#1560)
KeisukeShima Jul 19, 2021
9a97ddf
Add markdownlint and prettier (#1661)
kenji-miyake Jul 20, 2021
e1cdf58
Fix MD029 (#1813)
kenji-miyake Aug 9, 2021
5ff0ca3
Invoke code formatter at pre-commit (#1935)
IshitaTakeshi Sep 1, 2021
f27962d
add sort-package-xml hook in pre-commit (#1881)
KeisukeShima Sep 9, 2021
76b6ee1
Add shellcheck (#2079)
kenji-miyake Sep 14, 2021
edbcb64
update pre-commit-hooks-ros to v0.2.0 (#2137)
KeisukeShima Sep 28, 2021
6015448
Auto-update pre-commit hooks (#2138)
tier4-autoware-private-bot[bot] Sep 28, 2021
fa23635
Auto-update pre-commit hooks (#2146)
tier4-autoware-private-bot[bot] Oct 11, 2021
1019cd7
Add markdown-link-check pre-commit (#2215)
KeisukeShima Oct 18, 2021
3b1d9e7
Auto-update pre-commit hooks (#2323)
tier4-autoware-private-bot[bot] Oct 31, 2021
dfd58b1
ignore .swp file (#1833)
satoshi-ota Oct 21, 2021
07986f2
Add settings for new formatters (#2330)
kenji-miyake Nov 2, 2021
de83b63
Change formatter to clang-format and black (#2332)
kenji-miyake Nov 2, 2021
bcb74f0
Back port .auto control packages (#571)
TakaHoribe Nov 11, 2021
9248994
Port parking planner packages from .Auto (#600)
maxime-clem Nov 12, 2021
71d0eea
adding autoware_auto_perception_rviz_plugin (#574)
Nov 12, 2021
ffa1f71
style(prettier): change printWitdh
Nov 30, 2021
8d8f71b
chore: add empty build_depends.repos
Nov 30, 2021
723a1c9
style: fix styles of .pre-commit-config.yaml
Nov 30, 2021
683f25b
docs(mkdocs): update settings
Nov 30, 2021
442c20a
chore: update .gitignore
Nov 30, 2021
e6cb5bd
chore: update .markdown-link-check.json
Nov 30, 2021
0e1a783
chore: update .pre-commit-config.yaml
Nov 30, 2021
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
44 changes: 44 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# 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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
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
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Vim
*.swp
*.swo

# Visual Studio Code
.vscode/
*.code-workspace

# colcon
build/
install/
log/

# Python
*.pyc

6 changes: 6 additions & 0 deletions .markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"aliveStatusCodes": [200, 206, 403],
"ignorePatterns": [],
"retryOn429": true,
"retryCount": 10
}
6 changes: 6 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
default: true
MD013: false
MD024:
siblings_only: true
MD033: false
MD041: false
81 changes: 81 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
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.0.1
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.0
hooks:
- id: prettier

- 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/gruntwork-io/pre-commit
rev: v0.1.17
hooks:
- id: shellcheck

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 21.11b1
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: v12.0.1
hooks:
- id: clang-format

- repo: https://github.com/cpplint/cpplint
rev: 1.5.5
hooks:
- id: cpplint
args: ["--quiet"]
exclude: ".cu"

exclude: ".svg"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.param.yaml
2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
printWidth: 100
tabWidth: 2
1 change: 1 addition & 0 deletions build_depends.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repositories:
Binary file added docs/assets/images/autoware-foundation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
site_name: Autoware Universe Documentation
site_url: https://autowarefoundation.github.io/autoware.universe
repo_url: https://github.com/autowarefoundation/autoware.universe
edit_uri: edit/main/
docs_dir: .
copyright: "Copyright &copy; 2021 The Autoware Foundation"

theme:
name: material
features:
- navigation.expand
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
favicon: assets/images/autoware-foundation.png
icon:
logo: fontawesome/solid/car
repo: fontawesome/brands/github
language: en
palette:
- primary: white
- scheme: default
toggle:
icon: material/weather-sunny
name: Switch to dark mode
- scheme: slate
toggle:
icon: material/weather-night
name: Switch to light mode

extra:
font:
text: Roboto
code: Roboto Mono

extra_css:
- https://use.fontawesome.com/releases/v5.15.4/css/all.css

extra_javascript:
- https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML

plugins:
- awesome-pages
- same-dir
- search

markdown_extensions:
- admonition
- attr_list
- codehilite: { guess_lang: false }
- fontawesome_markdown
- footnotes
- mdx_math
- mdx_truly_sane_lists: { nested_indent: 2 }
- mdx_unimoji
- plantuml_markdown: { server: "http://www.plantuml.com/plantuml", format: svg }
- pymdownx.arithmatex
- pymdownx.highlight
- pymdownx.superfences
- toc: { permalink: "#" }
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_flake8/ament_flake8/configuration/ament_flake8.ini
extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,CNL100,E203,E501,Q000
import-order-style = google
max-line-length = 100
show-source = true
statistics = true

[isort]
profile=black
line_length=100
force_sort_within_sections=true
force_single_line=true
reverse_relative=true
known_third_party=launch