-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (35 loc) · 1.04 KB
/
.pre-commit-config.yaml
File metadata and controls
36 lines (35 loc) · 1.04 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
default_install_hook_types:
- pre-commit
- post-checkout
- post-merge
- post-rewrite
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=10000"]
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: trailing-whitespace
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: check-ast
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.1
hooks:
- id: uv-export
name: main dependencies
args: [--no-hashes, --no-header, --no-annotate, --no-dev, --output-file, requirements.txt]
- id: uv-export
name: dev dependencies
args: [--no-hashes, --no-header, --no-annotate, --only-group, dev, --output-file, requirements-dev.txt]
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format