2024-06-26 10:58:55 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-07-09 20:33:45 +03:00
|
|
|
rev: v4.6.0
|
2024-06-26 10:58:55 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2024-07-09 20:33:45 +03:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: check-case-conflict
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit
|
|
|
|
rev: v3.6.2
|
2024-06-26 10:58:55 +03:00
|
|
|
hooks:
|
2024-07-09 20:33:45 +03:00
|
|
|
- id: validate_manifest
|
2024-06-26 10:58:55 +03:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
2024-07-09 20:33:45 +03:00
|
|
|
rev: v0.5.1
|
2024-06-26 10:58:55 +03:00
|
|
|
hooks:
|
|
|
|
# Run the linter.
|
|
|
|
- id: ruff
|
|
|
|
args: [--fix]
|
2024-07-09 20:33:45 +03:00
|
|
|
additional_dependencies: []
|
2024-06-26 10:58:55 +03:00
|
|
|
# Run the formatter.
|
|
|
|
- id: ruff-format
|
2024-07-09 20:33:45 +03:00
|
|
|
additional_dependencies: []
|
2024-07-09 18:55:14 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-07-09 20:33:45 +03:00
|
|
|
rev: v1.10.1
|
2024-07-09 18:55:14 +03:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
|
|
|
additional_dependencies: ["types-aiofiles"]
|
|
|
|
- repo: https://github.com/python-poetry/poetry
|
2024-07-09 20:33:45 +03:00
|
|
|
rev: "1.8.0"
|
2024-07-09 18:55:14 +03:00
|
|
|
hooks:
|
|
|
|
- id: poetry-check
|
|
|
|
args: ["-C", "./backend/core"]
|
|
|
|
- id: poetry-lock
|
|
|
|
args: ["-C", "./backend/core"]
|