CI: Replace pre-commit with prek

This commit is contained in:
Thaddeus Crews committed 2026-05-01 13:43:49 -05:00
1 parent 16bb065ac3
commit 9c81dfa864
5 files changed
+5 -31

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
# If you change this file, please format all files of the codebase as part of your PR:
# pre-commit run clang-format --all
# prek run clang-format --all
# Commented out parameters are those with the same value as base LLVM style.
# We can uncomment them if we want to change their value, or enforce the
+1 -1
View File
@@ -1,5 +1,5 @@
# If you change this file, please format all files of the codebase as part of your PR:
# pre-commit run --hook-stage manual clang-tidy --all
# prek run --hook-stage manual clang-tidy --all
Checks:
- -*
-25
View File
@@ -1,25 +0,0 @@
name: Pre-commit
description: Setup pre-commit, and run it.
inputs:
extra_args:
description: Options to pass to pre-commit run
required: false
default: '--all-files'
runs:
using: composite
steps:
- uses: actions/cache@v5
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- run: |
pip install pre-commit
pre-commit install
shell: bash
- run: |
pre-commit run --show-diff-on-failure --color=always --files ${{ inputs.extra_args }}
shell: bash
+3 -3
View File
@@ -39,9 +39,9 @@ jobs:
skip_initial_fetch: true
files_yaml_from_source_file: .github/changed_files.yml
- name: Style checks via pre-commit
uses: ./.github/actions/pre-commit
- name: Style checks via prek
uses: j178/prek-action@v2
env:
CHANGED_FILES: '"${{ steps.changed-files.outputs.everything_all_changed_files }}"' # Wrap with quotes to bookend internal quote separators.
with:
extra_args: --files ${{ env.CHANGED_FILES }}
extra-args: --files ${{ env.CHANGED_FILES }}
-1
View File
@@ -23,7 +23,6 @@
###########################
/custom.py
misc/hooks/pre-commit-custom-*
#############################
### Godot generated files ###