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
|
2024-07-30 19:49:12 +03:00
|
|
|
args: ["--maxkb=5000"]
|
2024-06-26 10:58:55 +03:00
|
|
|
- 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
|
2024-09-23 19:11:06 +03:00
|
|
|
args: [--fix, --isolated]
|
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-09-23 19:11:06 +03:00
|
|
|
args: [--isolated]
|
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
|
2024-09-23 19:11:06 +03:00
|
|
|
args: ["--ignore-missing-imports", "--no-incremental", "--follow-imports=skip"]
|
|
|
|
additional_dependencies: ["types-aiofiles", "types-pyyaml", "pydantic", "sqlmodel"]
|
2024-08-06 16:51:04 +03:00
|
|
|
ci:
|
|
|
|
autofix_commit_msg: |
|
|
|
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
|
|
|
|
|
|
|
|
for more information, see https://pre-commit.ci
|
|
|
|
autofix_prs: true
|
|
|
|
autoupdate_branch: ""
|
|
|
|
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|