-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
72 lines (62 loc) · 1.67 KB
/
.pre-commit-config.yaml
File metadata and controls
72 lines (62 loc) · 1.67 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
default_language_version:
python: python3.12
fail_fast: true
ci:
# Define the common exclude pattern as an anchor
exclude_patterns: &exclude_patterns |
(?x)(
.*/input_repo/.*|
.*/output_repo/.*|
.*/repositories/.*
)
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
hooks:
# Run the linter.
- id: ruff
types_or: [python, jupyter, pyi]
args: [--fix]
exclude: *exclude_patterns
# Run the formatter.
- id: ruff-format
types_or: [python, jupyter, pyi]
exclude: *exclude_patterns
# - repo: https://github.com/kynan/nbstripout
# rev: 0.8.1
# hooks:
# - id: nbstripout
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: *exclude_patterns
exclude_types: [mdx, pyi]
- id: check-yaml
exclude: *exclude_patterns
- id: end-of-file-fixer
exclude: *exclude_patterns
- id: check-merge-conflict
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-workflows
- id: check-github-actions
args: ["--verbose"]
- repo: https://github.com/mxr/sync-pre-commit-deps
rev: v0.0.3
hooks:
- id: sync-pre-commit-deps
- repo: https://github.com/codespell-project/codespell
rev: v2.4.0
hooks:
- id: codespell
additional_dependencies:
- tomli
files: ".*"
exclude: ".*\\.ipynb"
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.5.24"
hooks:
- id: uv-lock
entry: bash -c "uv lock --frozen"