2023-08-30 07:22:01 +07:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2026-02-28 16:21:24 +07:00
|
|
|
rev: v5.0.0
|
2023-08-30 07:22:01 +07:00
|
|
|
hooks:
|
|
|
|
|
- id: check-yaml
|
2023-12-20 11:30:25 +07:00
|
|
|
args: ["--unsafe"]
|
2023-08-30 07:22:01 +07:00
|
|
|
- id: check-toml
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: trailing-whitespace
|
2024-02-03 09:38:50 +07:00
|
|
|
- id: mixed-line-ending
|
2023-08-30 07:22:01 +07:00
|
|
|
- id: detect-aws-credentials
|
|
|
|
|
args: ["--allow-missing-credentials"]
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
- id: check-added-large-files
|
2024-02-20 18:17:48 +07:00
|
|
|
args: ["--maxkb=750"]
|
2024-02-03 09:38:50 +07:00
|
|
|
- id: debug-statements
|
2026-02-28 16:21:24 +07:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
|
rev: v0.15.0
|
2023-08-30 07:22:01 +07:00
|
|
|
hooks:
|
2026-02-28 16:21:24 +07:00
|
|
|
- id: ruff-check
|
2023-08-30 07:22:01 +07:00
|
|
|
args:
|
2026-02-28 16:21:24 +07:00
|
|
|
- --fix
|
|
|
|
|
- id: ruff-format
|
2023-08-30 07:22:01 +07:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2026-02-28 16:21:24 +07:00
|
|
|
rev: "v1.19.1"
|
2023-08-30 07:22:01 +07:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2026-02-28 16:21:24 +07:00
|
|
|
files: "^(libs/)"
|
2024-01-10 15:28:09 +07:00
|
|
|
additional_dependencies:
|
2026-02-28 16:21:24 +07:00
|
|
|
- pydantic
|
|
|
|
|
- types-PyYAML==6.0.12.11,
|
|
|
|
|
- "types-requests"
|
|
|
|
|
- "sqlmodel"
|
|
|
|
|
- "types-Markdown"
|
|
|
|
|
- "types-cachetools"
|
|
|
|
|
- types-tzlocal
|
2023-12-20 11:30:25 +07:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2026-02-28 16:21:24 +07:00
|
|
|
rev: v2.4.1
|
2023-12-20 11:30:25 +07:00
|
|
|
hooks:
|
|
|
|
|
- id: codespell
|
|
|
|
|
additional_dependencies:
|
|
|
|
|
- tomli
|