-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy path.pre-commit.yaml
More file actions
40 lines (33 loc) · 883 Bytes
/
.pre-commit.yaml
File metadata and controls
40 lines (33 loc) · 883 Bytes
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: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.4
hooks:
# Run the linter.
- id: ruff
name: lint with ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
- id: ruff
name: sort imports with ruff
args: [--select, I, --fix]
# Run the formatter.
- id: ruff-format
name: format with ruff
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.24
hooks:
- id: uv-export