Skip to content

Commit c85acd0

Browse files
committed
chore: 修改pre-commit的配置 TencentBlueKing#7625
1 parent b985abc commit c85acd0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
default_stages: [commit]
1+
default_stages: [pre-commit]
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v2.1.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-merge-conflict
77
- repo: https://github.com/psf/black
8-
rev: 22.8.0
8+
rev: 24.10.0
99
hooks:
1010
- id: black
1111
language_version: python3.11.10
12-
# - repo: https://github.com/pycqa/isort
13-
# rev: 5.6.4
14-
# hooks:
15-
# - id: isort
16-
# args: ["--profile", "black", "--filter-files"]
12+
- repo: https://github.com/pycqa/isort
13+
rev: 5.13.2
14+
hooks:
15+
- id: isort
16+
args: ["--profile", "black"]
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
1818
rev: v2.1.0
1919
hooks:
2020
- id: flake8
2121
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
22-
rev: v9.11.0
22+
rev: v9.19.0
2323
hooks:
2424
- id: commitlint
2525
stages: [commit-msg]

0 commit comments

Comments
 (0)