-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
141 lines (141 loc) · 4.1 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
141 lines (141 loc) · 4.1 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
repos:
- repo: local
hooks:
- id: check-added-large-files
name: check-added-large-files
entry: check-added-large-files
language: system
pass_filenames: false
always_run: true
args: [--maxkb=5120]
- id: check-ast
name: check-ast
entry: check-ast
language: system
pass_filenames: false
always_run: true
- id: check-builtin-literals
name: check-builtin-literals
entry: check-builtin-literals
language: system
pass_filenames: false
always_run: true
- id: check-case-conflict
name: check-case-conflict
entry: check-case-conflict
language: system
pass_filenames: false
always_run: true
- id: check-docstring-first
name: check-docstring-first
entry: check-docstring-first
language: system
pass_filenames: false
always_run: true
- id: check-executables-have-shebangs
name: check-executables-have-shebangs
entry: check-executables-have-shebangs
language: system
pass_filenames: false
always_run: true
- id: check-json
name: check-json
entry: check-json
language: system
pass_filenames: false
always_run: true
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: system
pass_filenames: false
always_run: true
- id: check-symlinks
name: check-symlinks
entry: check-symlinks
language: system
pass_filenames: false
always_run: true
- id: check-toml
name: check-toml
entry: check-toml
language: system
pass_filenames: false
always_run: true
- id: check-yaml
name: check-yaml
entry: check-yaml
language: system
pass_filenames: false
always_run: true
- id: debug-statements
name: debug-statements
entry: debug-statement-hook
language: system
pass_filenames: false
always_run: true
- id: detect-private-key
name: detect-private-key
entry: detect-private-key
language: system
pass_filenames: false
always_run: true
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
pass_filenames: false
always_run: true
- id: fix-byte-order-marker
name: fix-byte-order-marker
entry: fix-byte-order-marker
language: system
pass_filenames: false
always_run: true
- id: pretty-format-json
name: pretty-format-json
entry: pretty-format-json
language: system
pass_filenames: false
always_run: true
args: [--autofix, --no-sort-keys, --no-ensure-ascii]
- id: requirements-txt-fixer
name: requirements-txt-fixer
entry: requirements-txt-fixer
language: system
pass_filenames: false
always_run: true
- id: trailing-whitespace
name: trailing-whitespace
entry: trailing-whitespace-fixer
language: system
pass_filenames: false
always_run: true
args: [--markdown-linebreak-ext=md]
# - id: pyrefly
# name: pyrefly
# entry: pyrefly check
# language: system
# pass_filenames: false
# always_run: true
- id: ruff-check
name: ruff-check
entry: ruff check
language: system
pass_filenames: false
always_run: true
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
name: ruff-format
entry: ruff format
language: system
pass_filenames: false
- id: update-copyright
name: update-copyright
entry: python scripts/update-copyright.py
language: system
types_or: [c, c++, java, python]
- id: check-obsolete-copyright
name: check-obsolete-copyright
entry: python scripts/check-obsolete-copyright.py
language: system