Skip to content

Commit d02738e

Browse files
authored
[Docathon][CodeStyle] refine pre-commit-config.yaml (#6250)
1 parent 68cd30d commit d02738e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.pre-commit-config.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
repos:
2-
- repo: https://github.com/psf/black.git
3-
rev: 23.3.0
4-
hooks:
5-
- id: black
6-
files: \.py$
2+
# Common hooks
73
- repo: https://github.com/pre-commit/pre-commit-hooks
84
rev: v4.4.0
95
hooks:
@@ -22,6 +18,7 @@ repos:
2218
types: [text]
2319
- id: remove-tabs
2420
types: [text]
21+
# Document hooks
2522
- repo: https://github.com/ShigureLab/dochooks
2623
rev: v0.3.0
2724
hooks:
@@ -41,6 +38,12 @@ repos:
4138
entry: python .pre-commit-hooks/convert_markdown_into_html.py
4239
language: system
4340
files: .+README(\.cn)?\.md$
41+
# For Python files
42+
- repo: https://github.com/psf/black.git
43+
rev: 23.3.0
44+
hooks:
45+
- id: black
46+
files: \.py$
4447
- repo: https://github.com/astral-sh/ruff-pre-commit
4548
rev: v0.1.1
4649
hooks:

0 commit comments

Comments
 (0)