mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
[CK] Updated pre-commit entry points ## Motivation Pre-commit fails after the transition to the monorepo. This fixes it. ## Technical Details - ## Test Plan Try to commit on CK with pre-commit enabled. ## Test Result Pre-commit should pass. (Scripts are correctly found) ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. Signed-off-by: Chris Tsiaousis <chris.tsiaousis@streamhpc.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v18.1.3
|
|
hooks:
|
|
- id: clang-format
|
|
types_or: [c++, inc]
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.14.0
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [ --fix ]
|
|
exclude: |
|
|
(?x)^(
|
|
docs/conf.py
|
|
)$
|
|
- id: ruff-format
|
|
exclude: |
|
|
(?x)^(
|
|
docs/conf.py
|
|
)$
|
|
- repo: local
|
|
hooks:
|
|
- id: copyright-header-checker
|
|
name: Check copyright headers
|
|
entry: projects/composablekernel/script/check_copyright_year.sh
|
|
verbose: false
|
|
language: script
|
|
types_or: [c++, python, shell, cmake]
|
|
- id: remove-exec-bit
|
|
name: Remove executable bit from non-executable files
|
|
entry: projects/composablekernel/script/remove_exec_bit.sh
|
|
language: script
|
|
types_or: [c++, text]
|
|
verbose: true
|
|
- id: remod-ck-tile
|
|
name: Run ck_tile remod.py
|
|
entry: python projects/composablekernel/script/remod_for_ck_tile.py
|
|
language: python
|
|
files: '^(include|example)/ck_tile/.*$'
|
|
additional_dependencies:
|
|
- dos2unix
|
|
- clang-format==18.1.3
|
|
pass_filenames: false
|