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