diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index d6df8dc06c2..1fdbdba7fce 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -11,7 +11,6 @@ - source: .github/pull_request_template.md - source: .github/stale.yml - source: .github/workflows/comment-on-pr.yaml - - source: .github/workflows/github-release.yaml - source: .github/workflows/pre-commit-optional.yaml - source: .github/workflows/semantic-pull-request.yaml - source: .github/workflows/spell-check-differential.yaml @@ -26,7 +25,13 @@ "pattern": "^http://localhost"' \ {source} - source: .markdownlint.yaml + pre-commands: | + sd 'MD059: false' 'MD059: false\nMD060: false' {source} - source: .pre-commit-config.yaml + pre-commands: | + sd -f s \ + ' - repo: https://github.com/autowarefoundation/autoware-guideline-check\n(.|\n)*?\n - repo: ' \ + ' - repo: ' {source} - source: .pre-commit-config-optional.yaml - source: .prettierignore - source: .prettierrc.yaml diff --git a/.github/workflows/github-release.yaml b/.github/workflows/github-release.yaml deleted file mode 100644 index bbe2ac512d7..00000000000 --- a/.github/workflows/github-release.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# 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: github-release - -on: - push: - branches: - - beta/v* - tags: - - v* - workflow_dispatch: - inputs: - beta-branch-or-tag-name: - description: The name of the beta branch or tag to release - type: string - required: true - -jobs: - github-release: - runs-on: ubuntu-22.04 - steps: - - name: Set tag name - id: set-tag-name - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - REF_NAME="${{ github.event.inputs.beta-branch-or-tag-name }}" - else - REF_NAME="${{ github.ref_name }}" - fi - - echo "ref-name=$REF_NAME" >> $GITHUB_OUTPUT - echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT - - - name: Check out repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - ref: ${{ steps.set-tag-name.outputs.ref-name }} - - - name: Set target name for beta branches - id: set-target-name - run: | - if [[ "${{ steps.set-tag-name.outputs.ref-name }}" =~ "beta/" ]]; then - echo "target-name=${{ steps.set-tag-name.outputs.ref-name }}" >> $GITHUB_OUTPUT - fi - - - name: Create a local tag for beta branches - run: | - if [ "${{ steps.set-target-name.outputs.target-name }}" != "" ]; then - git tag "${{ steps.set-tag-name.outputs.tag-name }}" - fi - - - name: Run generate-changelog - id: generate-changelog - uses: autowarefoundation/autoware-github-actions/generate-changelog@v1 - - - name: Select verb - id: select-verb - run: | - has_previous_draft=$(gh release view --json isDraft -q ".isDraft" "${{ steps.set-tag-name.outputs.tag-name }}") || true - - verb=create - if [ "$has_previous_draft" = "true" ]; then - verb=edit - fi - - echo "verb=$verb" >> $GITHUB_OUTPUT - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Release to GitHub - run: | - gh release ${{ steps.select-verb.outputs.verb }} "${{ steps.set-tag-name.outputs.tag-name }}" \ - --draft \ - --target "${{ steps.set-target-name.outputs.target-name }}" \ - --title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \ - --notes "$NOTES" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NOTES: ${{ steps.generate-changelog.outputs.changelog }} diff --git a/.markdownlint.yaml b/.markdownlint.yaml index 584154b2009..85898d5617e 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -14,3 +14,5 @@ MD041: false MD045: false MD046: false MD049: false +MD059: false +MD060: false diff --git a/.pre-commit-config-optional.yaml b/.pre-commit-config-optional.yaml index ff325af5e87..903cacb8cb8 100644 --- a/.pre-commit-config-optional.yaml +++ b/.pre-commit-config-optional.yaml @@ -2,9 +2,16 @@ # 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" + # we already have our own daily update mechanism, we set this to quarterly + autoupdate_schedule: quarterly + autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate" + repos: - repo: https://github.com/tcort/markdown-link-check - rev: v3.12.2 + rev: v3.14.2 hooks: - id: markdown-link-check args: [--quiet, --config=.markdown-link-check.json] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 48a97c13ef9..f126e38da28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-json - id: check-merge-conflict @@ -26,7 +26,7 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.43.0 + rev: v0.46.0 hooks: - id: markdownlint args: [-c, .markdownlint.yaml, --fix] @@ -37,7 +37,7 @@ repos: - id: prettier - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint @@ -52,42 +52,43 @@ repos: - id: sort-package-xml - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.10.0-2 + rev: v3.12.0-2 hooks: - id: shfmt args: [-w, -s, -i=4] - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort + args: [--profile=black, --line-length=100] - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.11.0 hooks: - id: black args: [--line-length=100] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.5 + rev: v21.1.6 hooks: - id: clang-format types_or: [c++, c, cuda] - repo: https://github.com/cpplint/cpplint - rev: 2.0.0 + rev: 2.0.2 hooks: - id: cpplint args: [--quiet] exclude: .cu - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.30.0 + rev: 0.35.0 hooks: - id: check-metaschema files: ^.+/schema/.*schema\.json$ @@ -103,7 +104,7 @@ repos: additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"] - repo: https://github.com/AleksaC/hadolint-py - rev: v2.12.1b3 + rev: v2.14.0 hooks: - id: hadolint exclude: .svg$