Skip to content

Commit 3c80457

Browse files
committed
fix: pre-commit settings
1 parent 80da3e1 commit 3c80457

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
default_stages: [pre-commit]
22

33
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
name: End of file fixer
9+
description: "Ensure files end with a newline"
10+
11+
- id: check-json
12+
name: Check JSON
13+
description: "Check that JSON files are valid"
14+
15+
- id: check-toml
16+
name: Check TOML
17+
description: "Check that TOML files are valid"
18+
19+
- id: check-xml
20+
name: Check XML
21+
description: "Check that XML files are valid"
22+
23+
- id: check-yaml
24+
name: Check YAML
25+
description: "Check that YAML files are valid"
26+
27+
- id: detect-private-key
28+
name: Detect private key
29+
description: "Detect private keys in files"
30+
31+
- id: trailing-whitespace
32+
name: Trailing whitespace
33+
description: "Remove trailing whitespace from files"
34+
435
- repo: https://github.com/astral-sh/ruff-pre-commit
536
rev: v0.9.2
637
hooks:

0 commit comments

Comments
 (0)