2024-01-25 08:02:31 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-05-31 16:33:48 +00:00
|
|
|
rev: v5.0.0
|
2024-01-25 08:02:31 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
2024-01-25 19:41:27 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-05-31 16:33:48 +00:00
|
|
|
rev: v0.11.12
|
2024-01-25 08:02:31 +00:00
|
|
|
hooks:
|
2024-01-25 19:41:27 +00:00
|
|
|
- id: ruff
|
2025-05-31 16:33:48 +00:00
|
|
|
name: ruff lint with fixes
|
2025-06-02 00:00:40 +00:00
|
|
|
args: [
|
|
|
|
--fix,
|
|
|
|
--ignore, UP035,
|
|
|
|
--ignore, UP006,
|
|
|
|
--ignore, TRY400,
|
|
|
|
--ignore, TRY401,
|
|
|
|
--ignore, FBT001,
|
|
|
|
--ignore, FBT002,
|
|
|
|
--ignore, ARG002,
|
|
|
|
--ignore, SLF001,
|
|
|
|
--ignore, RUF012,
|
|
|
|
--ignore, RUF013,
|
|
|
|
--ignore, PERF203,
|
|
|
|
--ignore, PERF403,
|
|
|
|
--ignore, SIM105,
|
|
|
|
--ignore, SIM108,
|
|
|
|
--ignore, SIM118,
|
|
|
|
--ignore, S110,
|
|
|
|
--ignore, PLR0911,
|
|
|
|
--ignore, RET504,
|
|
|
|
--ignore, INP001,
|
|
|
|
--ignore, F811,
|
|
|
|
--ignore, F841,
|
|
|
|
--ignore, B012,
|
|
|
|
--ignore, E712,
|
|
|
|
--ignore, ANN001,
|
|
|
|
--ignore, ANN201,
|
|
|
|
--ignore, SIM102,
|
|
|
|
--ignore, FBT003
|
|
|
|
]
|
2025-05-31 16:33:48 +00:00
|
|
|
- id: ruff-format
|
|
|
|
name: ruff format
|
|
|
|
|
2025-06-02 00:00:40 +00:00
|
|
|
# Временно отключаем mypy для стабильности
|
|
|
|
# - repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
# rev: v1.16.0
|
|
|
|
# hooks:
|
|
|
|
# - id: mypy
|
|
|
|
# name: mypy type checking
|
|
|
|
# entry: mypy
|
|
|
|
# language: python
|
|
|
|
# types: [python]
|
|
|
|
# require_serial: true
|
|
|
|
# additional_dependencies: [
|
|
|
|
# "types-redis",
|
|
|
|
# "types-requests",
|
|
|
|
# "types-passlib",
|
|
|
|
# "types-Authlib",
|
|
|
|
# "sqlalchemy[mypy]"
|
|
|
|
# ]
|
|
|
|
# args: [
|
|
|
|
# "--config-file=mypy.ini",
|
|
|
|
# "--show-error-codes",
|
|
|
|
# "--no-error-summary",
|
|
|
|
# "--ignore-missing-imports"
|
|
|
|
# ]
|