Skip to content

Commit e4ce95e

Browse files
committed
minor
1 parent fb85bdc commit e4ce95e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1+
---
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v4.6.0
45
hooks:
56
- id: trailing-whitespace
67
- id: end-of-file-fixer
78
exclude: ^docs/
8-
9+
# - repo: https://github.com/lyz-code/yamlfix # The tool that actually fixes
10+
# rev: 1.16.0 # <---- UPDATE THIS to the latest stable version
11+
# hooks:
12+
# - id: yamlfix
13+
# name: yamlfix (Auto-Fix) # Optional: Rename for clarity
14+
# additional_dependencies:
15+
# - maison==1.4.3 # <--- 例子:指定 maison 版本为 0.2.3
916
- repo: https://github.com/adrienverge/yamllint.git
1017
rev: v1.35.1
1118
hooks:
1219
- id: yamllint
1320
args: [-c=.yamllint.yml]
14-
1521
- repo: https://github.com/asottile/pyupgrade
1622
rev: v3.16.0
1723
hooks:
1824
- id: pyupgrade
1925
args: [--py3-plus]
20-
2126
- repo: https://github.com/google/yapf
2227
rev: v0.40.2
2328
hooks:
2429
- id: yapf
2530
name: Format code
2631
additional_dependencies: [toml]
27-
2832
- repo: https://github.com/pycqa/isort
2933
rev: 5.13.2
3034
hooks:
3135
- id: isort
3236
name: Sort imports
33-
args: [--line-width, "120", --profile, black]
34-
37+
args: [--line-width, '120', --profile, black]
3538
- repo: https://github.com/PyCQA/docformatter
36-
rev: v1.7.7
39+
rev: eb1df34
3740
hooks:
3841
- id: docformatter
3942
name: Format docstring
4043
additional_dependencies: [tomli]
4144
args: [--config, pyproject.toml]
42-
4345
- repo: https://github.com/executablebooks/mdformat
4446
rev: 0.7.17
4547
hooks:
4648
- id: mdformat
4749
name: Format markdown
48-
additional_dependencies:
49-
- mdformat-gfm
50-
- mdformat-tables
50+
additional_dependencies: [mdformat-gfm, mdformat-tables]

0 commit comments

Comments
 (0)