Add basic setup for precommit (#749) (#764)

* Add basic setup for precommit

* Update README.md with instructions on installing precommit hooks

---------

Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
Co-authored-by: Bartlomiej Wroblewski <bwroblewski10@gmail.com>

[ROCm/composable_kernel commit: 237f9cd3aa]
This commit is contained in:
Adam Osewski
2023-07-06 18:01:06 +02:00
committed by GitHub
parent aff6040b5b
commit f5b4375a3d
5 changed files with 70 additions and 0 deletions

14
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,14 @@
repos:
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format-10 -i --style=file
language: system
types_or: [c++, inc]
- id: copyright-year-checker
name: copyright-year-checker
entry: script/check_copyright_year.sh
verbose: false
language: script
types: [c++]