-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (38 loc) · 1 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (38 loc) · 1 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
repos:
# Linting + formatting (Astral)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# File quality + security
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
- id: debug-statements
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
# Validate pyproject.toml against PEP 621
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
# Local hooks
- repo: local
hooks:
# Fast unit tests
- id: pytest-fast
name: pytest (fast)
entry: uv run pytest tests/ -x -q --timeout=10
language: system
types: [python]
pass_filenames: false
stages: [pre-push]