mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
* chore(copyright): update copyright header for left files * feat(copyright): add copyright check to precommit hooks * chore(copyright): update copyright header for include/ck_tile directory * chore(copyright): update copyright header for example directory * chore(copyright): update copyright header for .github directory * refactor: copyright_check script with better if else handling * chore(copyright): update compyright header for remaining files * feat: add script to automate copyright addition
44 lines
1.2 KiB
YAML
44 lines
1.2 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: 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: 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 script/remod_for_ck_tile.py
|
|
language: python
|
|
files: '^(include|example)/ck_tile/.*$'
|
|
additional_dependencies:
|
|
- dos2unix
|
|
- clang-format==18.1.3
|
|
pass_filenames: false
|