-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (49 loc) · 1.32 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
58 lines (49 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
minimum_pre_commit_version: "3.5.0"
default_stages: [pre-commit]
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: detect-private-key
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/AliYmn/conventional-commits-check
rev: v2.9.0
hooks:
- id: conventional-commits-check
stages: [commit-msg]
- repo: local
hooks:
- id: uv-lock-check
name: Check uv.lock is up-to-date
entry: uv lock --check
language: system
files: ^(pyproject\.toml|uv\.lock)$
pass_filenames: false
- id: ruff-check
name: Ruff linter
entry: uvx ruff check --fix
language: system
types: [python]
pass_filenames: false
- id: ruff-format
name: Ruff formatter
entry: uvx ruff format
language: system
types: [python]
pass_filenames: false
- id: ty
name: Type checking (ty)
entry: uv run ty check
language: system
types: [python]
pass_filenames: false