forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 959 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
repos:
# Common hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
files: (?!.*paddle)^.*$
- id: end-of-file-fixer
types: [text]
- id: trailing-whitespace
types: [text]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: remove-crlf
types: [text]
- id: remove-tabs
types: [text]
# Document hooks
- repo: https://github.com/ShigureLab/dochooks
rev: v0.3.0
hooks:
- id: insert-whitespace-between-cn-and-en-char
files: \.md$|\.rst$
# For Python files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
types_or: [ python, pyi ]
- id: ruff-format
types_or: [ python, pyi, jupyter ]