File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments