2025-02-12 16:43:50 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-13 05:40:16 +01:00
|
|
|
rev: v5.0.0
|
2025-02-12 16:43:50 +01:00
|
|
|
hooks:
|
2025-02-12 22:00:21 +01:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
2025-02-12 16:43:50 +01:00
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: double-quote-string-fixer
|
|
|
|
- id: name-tests-test
|
2025-02-12 21:44:30 +01:00
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2025-02-13 05:40:16 +01:00
|
|
|
rev: v2.7.0
|
2025-02-12 21:44:30 +01:00
|
|
|
hooks:
|
|
|
|
- id: setup-cfg-fmt
|
2025-02-13 05:33:03 +01:00
|
|
|
- repo: https://github.com/asottile/reorder-python-imports
|
2025-02-13 05:40:16 +01:00
|
|
|
rev: v3.14.0
|
2025-02-12 16:43:50 +01:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
2025-02-13 05:40:16 +01:00
|
|
|
args: [--py39-plus, --add-import, 'from __future__ import annotations']
|
2025-02-12 16:43:50 +01:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2025-02-13 05:35:04 +01:00
|
|
|
rev: v3.1.0
|
2025-02-12 16:43:50 +01:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
2025-02-12 21:44:30 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2025-02-13 05:41:10 +01:00
|
|
|
rev: v3.19.1
|
2025-02-12 21:44:30 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2025-02-13 05:40:16 +01:00
|
|
|
args: [--py39-plus]
|
2025-02-13 05:35:04 +01:00
|
|
|
- repo: https://github.com/hhatto/autopep8
|
2025-02-13 05:46:49 +01:00
|
|
|
rev: v2.3.2
|
2025-02-12 22:00:21 +01:00
|
|
|
hooks:
|
|
|
|
- id: autopep8
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2025-02-13 05:39:44 +01:00
|
|
|
rev: 7.1.1
|
2025-02-12 22:00:21 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
exclude: ^identify/vendor/licenses\.py$
|
2025-02-12 21:44:30 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2025-02-13 05:41:36 +01:00
|
|
|
rev: v1.14.1
|
2025-02-12 21:44:30 +01:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|