-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (38 loc) · 1.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
38 lines (38 loc) · 1.03 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
fail_fast: true
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: \.md$
- id: check-toml
- id: mixed-line-ending
- repo: local
hooks:
- id: sort-pyproject
name: sort pyproject
files: ^pyproject\.toml$
language: system
entry: uv run -- toml-sort -i --sort-table-keys --sort-inline-tables
- id: ruff-format
name: ruff format
types_or: [python, pyi, jupyter, toml]
language: system
entry: uv run -- ruff format --
require_serial: true
- id: ruff-lint
name: ruff lint
types_or: [python, pyi, jupyter, toml]
language: system
entry: uv run -- ruff check --fix --
require_serial: true
- id: pyright
name: pyright
types_or: [python]
language: system
entry: uv run -- pyright
require_serial: true