2024-04-28 04:29:51 +08:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
2024-04-28 05:24:52 +08:00
|
|
|
exclude: "GeneratedTorchOps\\.td|abstract_interp_lib_gen\\.py|\\.excalidraw|\\.ipynb"
|
2024-04-28 04:29:51 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.2.0
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/psf/black
|
2024-04-29 11:06:01 +08:00
|
|
|
rev: 24.4.2
|
2024-04-28 04:29:51 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
|
|
rev: 'v18.1.4'
|
|
|
|
hooks:
|
|
|
|
- id: clang-format
|