2026-02-03 03:47:46 +01:00
|
|
|
default_language_version:
|
2026-03-10 14:50:38 +05:30
|
|
|
python: python3
|
2026-02-03 03:47:46 +01:00
|
|
|
|
2023-07-25 13:02:26 +03:00
|
|
|
ci:
|
|
|
|
|
autofix_prs: true
|
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
|
autofix_commit_msg: "fix(pre_commit): ๐จ auto format pre-commit hooks"
|
|
|
|
|
autoupdate_commit_msg: "chore(pre_commit): โฌ pre_commit autoupdate"
|
|
|
|
|
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2026-01-05 17:21:58 +01:00
|
|
|
rev: v6.0.0
|
2023-07-25 13:02:26 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: check-yaml
|
2024-01-24 17:51:59 +03:00
|
|
|
exclude: mkdocs.yml
|
2023-07-25 13:02:26 +03:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
- id: pretty-format-json
|
2023-10-05 15:27:37 +03:00
|
|
|
exclude: demo.ipynb
|
2026-02-10 21:39:52 +09:00
|
|
|
args: ["--autofix", "--no-sort-keys", "--indent=4"]
|
2023-07-25 13:02:26 +03:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
|
2026-02-10 21:39:52 +09:00
|
|
|
- repo: https://github.com/JoC0de/pre-commit-prettier
|
|
|
|
|
rev: v3.8.1 # using tag; previously pinned SHA when tags were not persistent
|
|
|
|
|
hooks:
|
|
|
|
|
- id: prettier
|
|
|
|
|
files: \.(ya?ml|toml)$
|
|
|
|
|
# https://prettier.io/docs/en/options.html#print-width
|
|
|
|
|
args: ["--print-width=120"]
|
2026-01-13 18:48:06 +01:00
|
|
|
|
2026-02-10 21:39:52 +09:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2026-03-24 21:07:32 +01:00
|
|
|
rev: v2.20.0
|
2026-02-10 21:39:52 +09:00
|
|
|
hooks:
|
|
|
|
|
- id: pyproject-fmt
|
2026-01-13 18:48:06 +01:00
|
|
|
|
2026-02-10 21:39:52 +09:00
|
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
|
|
|
rev: v0.25
|
|
|
|
|
hooks:
|
|
|
|
|
- id: validate-pyproject
|
|
|
|
|
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2026-03-24 21:07:32 +01:00
|
|
|
rev: v0.15.7
|
2026-02-10 21:39:52 +09:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff-check
|
|
|
|
|
args: [--fix]
|
|
|
|
|
- id: ruff-format
|
|
|
|
|
types_or: [python, pyi, jupyter]
|
2024-09-27 14:17:34 +03:00
|
|
|
|
2026-01-12 16:43:17 +01:00
|
|
|
- repo: https://github.com/executablebooks/mdformat
|
2026-01-12 20:15:27 +01:00
|
|
|
rev: 1.0.0
|
2026-01-12 16:43:17 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: mdformat
|
|
|
|
|
additional_dependencies:
|
|
|
|
|
- "mdformat-mkdocs[recommended]>=2.1.0"
|
2026-02-03 22:00:40 +09:00
|
|
|
- "mdformat-ruff"
|
2026-01-12 16:43:17 +01:00
|
|
|
args: ["--number"]
|
2026-02-03 22:00:40 +09:00
|
|
|
exclude: ^(docs/changelog\.md|docs/deprecated\.md)$
|
2024-09-27 14:17:34 +03:00
|
|
|
|
2026-01-27 12:55:24 +09:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2026-02-03 03:47:46 +01:00
|
|
|
rev: v1.19.1
|
2026-01-27 12:55:24 +09:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
|
|
|
|
additional_dependencies:
|
2026-02-03 03:47:46 +01:00
|
|
|
- "numpy>=2.0"
|
2026-01-27 12:55:24 +09:00
|
|
|
- "types-PyYAML"
|
|
|
|
|
- "types-requests"
|
|
|
|
|
|
2024-09-27 14:17:34 +03:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2026-03-10 10:20:55 +01:00
|
|
|
rev: v2.4.2
|
2024-09-27 14:17:34 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: codespell
|
|
|
|
|
additional_dependencies:
|
2026-02-03 03:47:46 +01:00
|
|
|
- "tomli>=2.0.1"
|