-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (48 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (48 loc) · 1.29 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.0
hooks:
- id: mypy
args: ["--ignore-missing-imports"]
- repo: https://github.com/psf/black
rev: 25.12.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.9
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
# pre-push hook, локальный
- repo: local
hooks:
- id: run-ci-before-push
name: Run CI checks before push
entry: uv run mypy src/ && uv run ruff check src/ && uv run pytest -v --maxfail=1
language: system
stages: [pre-push]
# repos:
# - repo: https://github.com/psf/black
# rev: 24.1.0
# hooks:
# - id: black
# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.4.7
# hooks:
# - id: ruff
# args: [--fix]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.19.0
# hooks:
# - id: mypy
# args: [--ignore-missing-imports]