-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
53 lines (53 loc) · 1.38 KB
/
.pre-commit-config.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
repos:
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject
additional_dependencies: ['validate-pyproject-schema-store[all]']
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
hooks:
- id: pyproject-fmt
- repo: local
hooks:
- id: ruff-format
name: ruff-format
entry: uv run --frozen ruff format --force-exclude
types_or: [python, pyi, jupyter]
language: system
always_run: true
require_serial: true
- repo: local
hooks:
- id: ruff
name: ruff
entry: uv run --frozen ruff check --fix --force-exclude
types_or: [python, pyi, jupyter]
language: system
always_run: true
require_serial: true
- repo: local
hooks:
- id: deptry
name: deptry
entry: uv run --frozen deptry src
language: system
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: import-linter
name: import-linter
entry: uv run --frozen lint-imports
language: system
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run --frozen pyright
language: system
types_or: [python, pyi]
always_run: true
require_serial: true