PaddleClas/.pre-commit-config.yaml

37 lines
1022 B
YAML
Raw Permalink Normal View History

2022-03-29 17:50:44 +08:00
repos:
- repo: https://github.com/cuicheng01/mirrors-yapf.git
2022-03-29 17:50:44 +08:00
rev: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
2020-09-29 00:47:22 +08:00
hooks:
- id: yapf
files: \.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-03-29 17:50:44 +08:00
rev: a11d9314b22d8f8c7556443875b731ef05965464
2020-09-29 00:47:22 +08:00
hooks:
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
files: (?!.*paddle)^.*$
- id: end-of-file-fixer
files: \.md$
- id: trailing-whitespace
files: \.md$
- repo: https://github.com/Lucas-C/pre-commit-hooks
2022-03-29 17:50:44 +08:00
rev: v1.0.1
2020-09-29 00:47:22 +08:00
hooks:
- id: forbid-crlf
files: \.md$
- id: remove-crlf
files: \.md$
- id: forbid-tabs
files: \.md$
- id: remove-tabs
files: \.md$
- repo: local
hooks:
- id: clang-format
name: clang-format
description: Format files with ClangFormat
entry: bash .clang_format.hook -i
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$