2020-09-30 08:39:14 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-29 15:56:41 +00:00
|
|
|
rev: v4.4.0
|
2020-09-30 08:39:14 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-executables-have-shebangs
|
2023-03-15 12:58:25 +00:00
|
|
|
- id: check-toml
|
2020-09-30 08:39:14 +00:00
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
types: [python]
|
2020-10-15 11:20:43 +00:00
|
|
|
- id: trailing-whitespace
|
2020-09-30 08:39:14 +00:00
|
|
|
- id: requirements-txt-fixer
|
2021-11-16 14:01:17 +00:00
|
|
|
|
2022-10-28 13:54:54 +00:00
|
|
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
2022-12-19 22:04:34 +00:00
|
|
|
rev: v0.2.2
|
2022-10-28 13:54:54 +00:00
|
|
|
hooks:
|
|
|
|
- id: auto-walrus
|
|
|
|
|
2023-06-22 11:49:09 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-08-15 03:12:11 +00:00
|
|
|
rev: v0.0.284
|
2023-03-15 12:58:25 +00:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
|
2020-09-30 08:39:14 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-07-18 04:28:22 +00:00
|
|
|
rev: 23.7.0
|
2020-09-30 08:39:14 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2021-11-16 14:01:17 +00:00
|
|
|
|
2023-03-15 12:58:25 +00:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2023-06-20 13:56:14 +00:00
|
|
|
rev: v2.2.5
|
2020-09-30 08:39:14 +00:00
|
|
|
hooks:
|
2023-03-15 12:58:25 +00:00
|
|
|
- id: codespell
|
|
|
|
additional_dependencies:
|
|
|
|
- tomli
|
2021-11-16 14:01:17 +00:00
|
|
|
|
2023-02-01 13:14:54 +00:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2023-08-15 03:12:11 +00:00
|
|
|
rev: "0.13.1"
|
2023-02-01 13:14:54 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
|
|
|
|
2023-03-15 12:58:25 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: validate-filenames
|
|
|
|
name: Validate filenames
|
|
|
|
entry: ./scripts/validate_filenames.py
|
|
|
|
language: script
|
|
|
|
pass_filenames: false
|
|
|
|
|
2023-02-01 13:14:54 +00:00
|
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
2023-05-23 03:54:30 +00:00
|
|
|
rev: v0.13
|
2023-02-01 13:14:54 +00:00
|
|
|
hooks:
|
|
|
|
- id: validate-pyproject
|
|
|
|
|
2021-11-16 14:01:17 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-08-15 03:12:11 +00:00
|
|
|
rev: v1.5.0
|
2021-11-16 14:01:17 +00:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
args:
|
|
|
|
- --ignore-missing-imports
|
2022-10-14 14:34:44 +00:00
|
|
|
- --install-types # See mirrors-mypy README.md
|
2021-11-16 14:01:17 +00:00
|
|
|
- --non-interactive
|
2022-10-02 19:59:17 +00:00
|
|
|
additional_dependencies: [types-requests]
|