2025-02-12 16:43:50 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-13 05:38:51 +01:00
|
|
|
rev: v4.6.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:36:58 +01:00
|
|
|
rev: v2.5.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:39:20 +01:00
|
|
|
rev: v3.13.0
|
2025-02-12 16:43:50 +01:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
2025-02-13 05:33:03 +01:00
|
|
|
args: [--py38-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:39:44 +01:00
|
|
|
rev: v3.17.0
|
2025-02-12 21:44:30 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2025-02-13 05:33:03 +01:00
|
|
|
args: [--py38-plus]
|
2025-02-13 05:35:04 +01:00
|
|
|
- repo: https://github.com/hhatto/autopep8
|
2025-02-13 05:39:20 +01:00
|
|
|
rev: v2.3.1
|
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:39:44 +01:00
|
|
|
rev: v1.11.2
|
2025-02-12 21:44:30 +01:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|