2025-02-09 21:10:22 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-09 21:51:43 +01:00
|
|
|
rev: v5.0.0
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
2025-02-09 21:33:11 +01:00
|
|
|
- id: double-quote-string-fixer
|
2025-02-09 21:10:22 +01:00
|
|
|
- id: name-tests-test
|
|
|
|
- id: requirements-txt-fixer
|
2025-02-09 21:33:11 +01:00
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2025-02-09 21:52:21 +01:00
|
|
|
rev: v2.7.0
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
2025-02-09 21:33:11 +01:00
|
|
|
- id: setup-cfg-fmt
|
2025-02-09 21:42:54 +01:00
|
|
|
- repo: https://github.com/asottile/reorder-python-imports
|
2025-02-09 21:52:21 +01:00
|
|
|
rev: v3.14.0
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
2025-02-09 21:33:11 +01:00
|
|
|
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
|
2025-02-09 21:46:04 +01:00
|
|
|
args: [--py39-plus, --add-import, 'from __future__ import annotations']
|
2025-02-09 21:10:22 +01:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2025-02-09 21:45:39 +01:00
|
|
|
rev: v3.1.0
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
2025-02-09 21:33:11 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2025-02-09 21:52:21 +01:00
|
|
|
rev: v3.19.1
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
2025-02-09 21:33:11 +01:00
|
|
|
- id: pyupgrade
|
2025-02-09 21:46:04 +01:00
|
|
|
args: [--py39-plus]
|
2025-02-09 21:45:39 +01:00
|
|
|
- repo: https://github.com/hhatto/autopep8
|
2025-02-09 21:51:12 +01:00
|
|
|
rev: v2.3.1
|
2025-02-09 21:33:11 +01:00
|
|
|
hooks:
|
|
|
|
- id: autopep8
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2025-02-09 21:51:43 +01:00
|
|
|
rev: 7.1.1
|
2025-02-09 21:33:11 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2025-02-09 21:10:22 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2025-02-09 21:52:21 +01:00
|
|
|
rev: v1.14.1
|
2025-02-09 21:10:22 +01:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2025-02-09 21:51:12 +01:00
|
|
|
additional_dependencies: [types-pyyaml]
|
2025-02-09 21:10:22 +01:00
|
|
|
exclude: ^testing/resources/
|