-
-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (27 loc) · 805 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (27 loc) · 805 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: local
hooks:
- id: uv-lock
name: uv lock
description: Checks the validity of the uv.lock file.
entry: uv lock
language: system
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
pass_filenames: false
- id: ruff
name: ruff
description: Run ruff linting
entry: uv run --frozen ruff check --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true
args: [--fix, --exit-non-zero-on-fix]