-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 1.05 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: local
hooks:
- id: ruff-format
name: Ruff format
entry: uv
args: [run, ruff, format]
language: system
types: [python]
pass_filenames: true
always_run: false
exclude: ^legacy/
- id: ruff-check
name: Ruff lint
entry: uv
args: [run, ruff, check, --fix, --exit-non-zero-on-fix]
language: system
types: [python]
pass_filenames: true
always_run: false
exclude: ^legacy/
- id: pycodestyle
name: PEP8 style check (pycodestyle)
entry: uv
args: ["run", "pycodestyle", "--max-line-length=88", "--ignore=E203,E501,W503,E704"]
language: system
types: [python]
pass_filenames: true
always_run: false
exclude: ^legacy/
- id: pyright
name: Type check with Pyright (strict)
entry: uv
args: [run, pyright]
language: system
types: [python]
pass_filenames: true
always_run: false
exclude: ^legacy/