-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 857 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 857 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
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.6
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.10
hooks:
- id: uv-lock
name: Sync uv.lock with pyproject.toml
always_run: true
- repo: local
hooks:
- id: pytest
name: Run pytest
entry: uv run --frozen pytest --exitfirst
language: python
types: [python]
stages: [pre-push]
pass_filenames: false
always_run: true