forked from gdsfactory/meow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (48 loc) · 1.34 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
52 lines (48 loc) · 1.34 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
40
41
42
43
44
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: []
- id: debug-statements
- id: end-of-file-fixer
exclude: 'changelog\.d/.*|CHANGLEOG\.md'
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: 'changelog\.d/.*|CHANGELOG\.md'
- 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/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: local
hooks:
- id: nbclean
name: nbclean
entry: just nbclean
language: system
files: \.(ipynb)$
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run --no-sync pyright
language: system
files: \.(py)$