-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (36 loc) · 1001 Bytes
/
.pre-commit-config.yaml
File metadata and controls
41 lines (36 loc) · 1001 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
40
41
# .pre-commit-config.yaml - Pre-commit Hooks Configuration
default_install_hook_types:
- pre-commit
- post-checkout
- post-merge
- post-rewrite
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-json
exclude: \.ipynb$
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff
- id: ruff-format
args: [--config=pyproject.toml]
- repo: local
hooks:
- id: ruff-critical
name: Critical lint checks (E722, F821)
entry: uv run ruff check --select=E722,F821
language: system
types: [python]
pass_filenames: true
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.7.9
hooks:
- id: uv-sync
stages: [post-checkout, post-merge, post-rewrite]
args: [--extra, dev]