diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 29a796aa..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,73 +0,0 @@ -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 - 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 - - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 - hooks: - - id: ruff - name: ruff lint with fixes - 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 - ] - - id: ruff-format - name: ruff format - - # Временно отключаем 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-Authlib", - # "sqlalchemy[mypy]" - # ] - # args: [ - # "--config-file=mypy.ini", - # "--show-error-codes", - # "--no-error-summary", - # "--ignore-missing-imports" - # ]