Skip to content

Commit 243baf0

Browse files
committed
update pre-commit yaml file
1 parent e1e6b9c commit 243baf0

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ repos:
33
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
6-
- id: check-ast
76
- id: end-of-file-fixer
87

9-
- repo: https://github.com/Yelp/detect-secrets
10-
rev: v1.5.0
8+
- repo: https://github.com/pre-commit/mirrors-mypy
9+
rev: v1.19.0
1110
hooks:
12-
- id: detect-secrets
13-
args: [--baseline, .secrets.baseline]
11+
- id: mypy
1412

1513
- repo: https://github.com/psf/black
1614
rev: 25.12.0
@@ -23,10 +21,20 @@ repos:
2321
- id: ruff
2422
args: [--fix]
2523

26-
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v1.19.0
24+
- repo: https://github.com/Yelp/detect-secrets
25+
rev: v1.5.0
2826
hooks:
29-
- id: mypy
27+
- id: detect-secrets
28+
args: [--baseline, .secrets.baseline]
29+
30+
# Добавляем pre-push hook, который будет запускать тесты и проверки
31+
- repo: local
32+
hooks:
33+
- id: run-ci-before-push
34+
name: Run CI checks before push
35+
entry: uv run mypy src/ && uv run ruff check src/ && uv run pytest -v --maxfail=1
36+
language: system
37+
stages: [push]
3038
# repos:
3139
# - repo: https://github.com/psf/black
3240
# rev: 24.1.0

0 commit comments

Comments
 (0)