feat: добавить pre-commit хуки для линтинга и форматирования

This commit is contained in:
qwen.ai[bot] 2026-08-12 13:19:14 +00:00
parent 313adecfff
commit 2c547bd763

View file

@ -5,7 +5,8 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: detect-private-key
@ -16,18 +17,17 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: local
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: flake8
name: flake8
entry: uv run flake8
language: system
types: [python]
args: [--count, --show-source, --statistics]
- id: black
language_version: python3.11
- id: pytest
name: pytest
entry: uv run pytest -q
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-PyYAML
args: [--ignore-missing-imports, --no-strict-optional]