Skip to content

Commit ee866c2

Browse files
author
Taher Chegini
committed
MNT: Update pre-commit hooks. [skip ci]
1 parent 5a1324f commit ee866c2

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,38 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: [--maxkb=50000]
7+
- id: mixed-line-ending
8+
args: [--fix=lf]
9+
- id: check-ast
10+
- id: check-builtin-literals
11+
- id: check-case-conflict
12+
- id: check-docstring-first
13+
- id: check-shebang-scripts-are-executable
14+
- id: check-merge-conflict
15+
- id: check-json
16+
- id: check-toml
17+
- id: check-xml
18+
- id: check-yaml
19+
- id: debug-statements
20+
- id: destroyed-symlinks
21+
- id: detect-private-key
22+
- id: end-of-file-fixer
23+
exclude: ^LICENSE|\.(html|csv|txt|svg|py)$
24+
- id: pretty-format-json
25+
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
26+
- id: trailing-whitespace
27+
args: [--markdown-linebreak-ext=md]
28+
exclude: \.(html|svg)$
29+
30+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
31+
rev: v2.14.0
32+
hooks:
33+
- id: pretty-format-yaml
34+
args: [--autofix, --indent, '2']
35+
236
- repo: https://github.com/bwhmather/ssort
337
rev: 0.13.0
438
hooks:
@@ -60,40 +94,6 @@ repos:
6094
- id: pyproject-fmt
6195
name: Apply a consistent format to pyproject.toml
6296

63-
- repo: https://github.com/pre-commit/pre-commit-hooks
64-
rev: v4.6.0
65-
hooks:
66-
- id: check-added-large-files
67-
args: [--maxkb=50000]
68-
- id: mixed-line-ending
69-
args: [--fix=lf]
70-
- id: check-ast
71-
- id: check-builtin-literals
72-
- id: check-case-conflict
73-
- id: check-docstring-first
74-
- id: check-shebang-scripts-are-executable
75-
- id: check-merge-conflict
76-
- id: check-json
77-
- id: check-toml
78-
- id: check-xml
79-
- id: check-yaml
80-
- id: debug-statements
81-
- id: destroyed-symlinks
82-
- id: detect-private-key
83-
- id: end-of-file-fixer
84-
exclude: ^LICENSE|\.(html|csv|txt|svg|py)$
85-
- id: pretty-format-json
86-
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
87-
- id: trailing-whitespace
88-
args: [--markdown-linebreak-ext=md]
89-
exclude: \.(html|svg)$
90-
91-
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
92-
rev: v2.14.0
93-
hooks:
94-
- id: pretty-format-yaml
95-
args: [--autofix, --indent, '2']
96-
9797
- repo: https://github.com/rhysd/actionlint
9898
rev: v1.7.1
9999
hooks:

0 commit comments

Comments
 (0)