Skip to content

Commit f7c0c51

Browse files
committed
🔧 build(deps): add pre-commit hooks for file checks and formatting
1 parent b33ec2d commit f7c0c51

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
default_language_version:
33
python: python3.13
44
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-toml
10+
- id: check-yaml
11+
args:
12+
- --unsafe
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
515
- repo: https://github.com/astral-sh/ruff-pre-commit
616
# Ruff version.
717
rev: v0.9.1
@@ -13,4 +23,4 @@ repos:
1323
- id: ruff-format
1424
ci:
1525
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
16-
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
26+
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate

0 commit comments

Comments
 (0)