Skip to content

Commit 7a793c2

Browse files
add pre-commit
1 parent 4b21326 commit 7a793c2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: format
5+
name: Format code and docs
6+
entry: uv run task format
7+
language: system
8+
types: [python]
9+
pass_filenames: false
10+
11+
- id: lint
12+
name: Lint code and type check
13+
entry: uv run task lint
14+
language: system
15+
types: [python]
16+
pass_filenames: false
17+
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v4.6.0
20+
hooks:
21+
- id: trailing-whitespace
22+
- id: end-of-file-fixer
23+
- id: check-yaml
24+
- id: check-toml
25+
- id: check-merge-conflict
26+
- id: check-added-large-files

0 commit comments

Comments
 (0)