2022-12-14 19:42:24 -08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-11-13 09:18:39 -08:00
|
|
|
rev: v4.5.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: double-quote-string-fixer
|
|
|
|
- id: name-tests-test
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2023-11-13 09:18:39 -08:00
|
|
|
rev: v2.5.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: setup-cfg-fmt
|
2023-06-05 11:41:50 -07:00
|
|
|
- repo: https://github.com/asottile/reorder-python-imports
|
2023-11-13 09:18:39 -08:00
|
|
|
rev: v3.12.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
|
|
|
args: [--py38-plus, --add-import, 'from __future__ import annotations']
|
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2023-09-04 12:22:46 -07:00
|
|
|
rev: v3.1.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
|
|
|
args: [--py36-plus]
|
|
|
|
- repo: https://github.com/asottile/dead
|
2023-06-19 12:05:50 -07:00
|
|
|
rev: v1.5.2
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: dead
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-11-13 09:18:39 -08:00
|
|
|
rev: v3.15.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py38-plus]
|
2023-09-04 12:22:46 -07:00
|
|
|
- repo: https://github.com/hhatto/autopep8
|
|
|
|
rev: v2.0.4
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: autopep8
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-08-14 12:13:59 -07:00
|
|
|
rev: 6.1.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies: [flake8-encodings, flake8-warnings, flake8-builtins, flake8-length, flake8-print]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-11-13 09:18:39 -08:00
|
|
|
rev: v1.7.0
|
2022-12-14 19:42:24 -08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|