Skip to content

Commit db699e0

Browse files
committed
Add more pre-commit checks, add ty and deptry to pre-commit checks
1 parent d4ec5bf commit db699e0

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.11.5
3+
rev: v0.13.2
44
hooks:
5-
- id: ruff
5+
# Run the linter.
6+
- id: ruff-check
67
args: [--fix]
8+
# Run the formatter.
79
- id: ruff-format
810

911
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.4.0
12+
rev: v6.0.0
1113
hooks:
1214
- id: trailing-whitespace
1315
- id: end-of-file-fixer
1416
- id: check-yaml
17+
- id: check-json
18+
- id: check-toml
1519
- id: check-added-large-files
1620
- id: check-merge-conflict
21+
- id: check-case-conflict
22+
23+
- repo: local
24+
hooks:
25+
- id: ty
26+
name: ty check
27+
entry: uv run ty check . --ignore unresolved-import
28+
language: system
29+
- id: deptry
30+
name: deptry
31+
entry: uv run deptry .
32+
language: system

0 commit comments

Comments
 (0)