2020-09-30 14:09:14 +05:30
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-04-09 07:23:51 +02:00
|
|
|
rev: v4.6.0
|
2020-09-30 14:09:14 +05:30
|
|
|
hooks:
|
|
|
|
- id: check-executables-have-shebangs
|
2023-03-15 13:58:25 +01:00
|
|
|
- id: check-toml
|
2020-09-30 14:09:14 +05:30
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
types: [python]
|
2020-10-15 13:20:43 +02:00
|
|
|
- id: trailing-whitespace
|
2020-09-30 14:09:14 +05:30
|
|
|
- id: requirements-txt-fixer
|
2021-11-16 06:01:17 -08:00
|
|
|
|
2022-10-28 15:54:54 +02:00
|
|
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
2024-04-30 06:58:03 +02:00
|
|
|
rev: 0.3.4
|
2022-10-28 15:54:54 +02:00
|
|
|
hooks:
|
2024-01-13 12:24:58 +01:00
|
|
|
- id: auto-walrus
|
2022-10-28 15:54:54 +02:00
|
|
|
|
2023-06-22 13:49:09 +02:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-09-30 22:16:17 +02:00
|
|
|
rev: v0.6.8
|
2023-03-15 13:58:25 +01:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
2024-01-16 16:39:54 +08:00
|
|
|
- id: ruff-format
|
2021-11-16 06:01:17 -08:00
|
|
|
|
2023-03-15 13:58:25 +01:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2024-05-27 21:56:48 -04:00
|
|
|
rev: v2.3.0
|
2020-09-30 14:09:14 +05:30
|
|
|
hooks:
|
2023-03-15 13:58:25 +01:00
|
|
|
- id: codespell
|
|
|
|
additional_dependencies:
|
|
|
|
- tomli
|
2021-11-16 06:01:17 -08:00
|
|
|
|
2023-02-01 14:14:54 +01:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2024-09-23 21:45:14 +02:00
|
|
|
rev: "2.2.4"
|
2023-02-01 14:14:54 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
|
|
|
|
2023-03-15 13:58:25 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: validate-filenames
|
|
|
|
name: Validate filenames
|
|
|
|
entry: ./scripts/validate_filenames.py
|
|
|
|
language: script
|
|
|
|
pass_filenames: false
|
|
|
|
|
2023-02-01 14:14:54 +01:00
|
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
2024-09-30 22:16:17 +02:00
|
|
|
rev: v0.20.2
|
2023-02-01 14:14:54 +01:00
|
|
|
hooks:
|
|
|
|
- id: validate-pyproject
|
|
|
|
|
2021-11-16 06:01:17 -08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-08-26 21:49:42 +02:00
|
|
|
rev: v1.11.2
|
2021-11-16 06:01:17 -08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
args:
|
2024-07-02 07:02:29 +02:00
|
|
|
- --explicit-package-bases
|
2021-11-16 06:01:17 -08:00
|
|
|
- --ignore-missing-imports
|
2022-10-14 20:04:44 +05:30
|
|
|
- --install-types # See mirrors-mypy README.md
|
2021-11-16 06:01:17 -08:00
|
|
|
- --non-interactive
|
2022-10-02 21:59:17 +02:00
|
|
|
additional_dependencies: [types-requests]
|
2024-01-13 12:24:58 +01:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-01-15 19:19:36 +01:00
|
|
|
rev: "v4.0.0-alpha.8"
|
2024-01-13 12:24:58 +01:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [toml, yaml]
|