34 lines
906 B
YAML
34 lines
906 B
YAML
repos:
|
|
# Базовые хуки
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: check-yaml
|
|
- id: check-json
|
|
exclude: launch.json
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: end-of-file-fixer
|
|
|
|
# ruff - линтер, форматер
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.12.2
|
|
hooks:
|
|
- id: ruff-check
|
|
- id: ruff-format
|
|
|
|
# mypy - статическая проверка типов
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.15.0
|
|
hooks:
|
|
- id: mypy
|
|
exclude: migrations/
|
|
args: [
|
|
"--ignore-missing-imports",
|
|
"--disallow-untyped-defs",
|
|
"--explicit-package-bases",
|
|
"--show-error-codes"
|
|
]
|
|
additional_dependencies: [ types-requests ]
|