-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (67 loc) · 1.71 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (67 loc) · 1.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
default_stages: [pre-commit]
default_install_hook_types:
- pre-commit
- pre-push
fail_fast: false
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
stages: [pre-commit]
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
args:
["--", "--indent-string", " ", "--reorder-arrays", "--reorder-keys"]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: local
hooks:
- id: uv-sync-check
name: uv-sync-check
language: system
entry: uv sync
pass_filenames: false
- id: ruff-check
name: ruff-check
entry: uv run ruff check --fix
language: system
pass_filenames: false
- id: ruff-format
name: ruff-format
entry: uv run ruff format
language: system
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
language: system
entry: uv run mypy django_cachex/
pass_filenames: false
always_run: true
stages: [pre-push]
- id: ty
name: ty
language: system
entry: uv run ty check django_cachex/
pass_filenames: false
always_run: true
stages: [pre-push]