-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.03 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
repos:
- repo: /~https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.5
hooks:
- id: ruff-format
stages: [pre-commit]
args: ["--config", "pyproject.toml"]
types_or: [python, jupyter]
- id: ruff
stages: [pre-commit]
args: ["--fix", "--config", "pyproject.toml"]
types_or: [python]
- repo: /~https://github.com/pocc/pre-commit-hooks
rev: "336fdd7"
hooks:
- id: clang-format
- repo: /~https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
- repo: /~https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: local
hooks:
- id: prettier
name: prettier
entry: npx prettier --write
language: system
files: \.(js|jsx|ts|tsx|md|yaml|yml|json|css)$
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run --no-sync pyright
language: system
files: \.(py)$