Pre-commit in CI (#3029)

* Pre-commit in CI

* Specify python version, and install dos2unix for remod

* Refactor remod hook to correctly install dependencies

* Run pre-commit
This commit is contained in:
Johannes Graner
2025-10-17 18:28:38 +02:00
committed by GitHub
parent 7e44b845b5
commit 8a4cd32d86
8 changed files with 51 additions and 19 deletions

View File

@@ -32,9 +32,12 @@ repos:
language: script
types_or: [c++, text]
verbose: true
- id: run-remod-if-ck-tile-changed
name: Run remod.py if ck_tile files changed
entry: script/remod_for_ck_tile.sh
language: script
- id: remod-ck-tile
name: Run ck_tile remod.py
entry: python script/remod_for_ck_tile.py
language: python
files: '^(include|example)/ck_tile/.*$'
additional_dependencies:
- dos2unix
- clang-format==18.1.3
pass_filenames: false