-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (53 loc) · 1.38 KB
/
.pre-commit-config.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-ast
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: sort-simple-yaml
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi]
stages: [pre-commit]
- id: ruff-format
types_or: [python, pyi]
- repo: local
hooks:
- id: just-fmt
name: just fmt
entry: just format
language: system
files: ^justfile$
pass_filenames: false
stages: [pre-commit]
- id: uv
name: uv
entry: uv lock
language: system
files: ^pyproject\.toml.uv\.lock$
pass_filenames: false
stages: [pre-commit]