revert back to previous clang-format #11
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
name: Lint Check (pre-commit) | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
name: pre-commit | |
permissions: | |
contents: read | |
checks: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
- name: Get Changed Files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
# See: | |
# https://github.com/tj-actions/changed-files?tab=readme-ov-file#using-local-git-directory- | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }} | |
continue-on-error: true | |
- name: suggester / pre-commit | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: pre-commit | |
level: warning | |
reviewdog_flags: "-fail-level=error" |