2017-09-08 10:22:03 +08:00
|
|
|
repos:
|
2015-12-26 01:37:18 +08:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-24 03:35:47 +08:00
|
|
|
rev: v4.4.0
|
2014-03-15 05:23:08 +08:00
|
|
|
hooks:
|
2014-03-24 14:10:35 +08:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
2014-04-04 13:23:50 +08:00
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
2019-02-12 11:57:37 +08:00
|
|
|
- id: double-quote-string-fixer
|
2022-03-26 02:12:21 +08:00
|
|
|
- id: name-tests-test
|
2015-01-05 08:05:20 +08:00
|
|
|
- id: requirements-txt-fixer
|
2022-03-26 02:12:21 +08:00
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2023-07-02 03:41:17 +08:00
|
|
|
rev: v2.4.0
|
2018-10-12 08:19:35 +08:00
|
|
|
hooks:
|
2022-03-26 02:12:21 +08:00
|
|
|
- id: setup-cfg-fmt
|
2023-05-09 12:04:00 +08:00
|
|
|
- repo: https://github.com/asottile/reorder-python-imports
|
2023-06-20 12:34:08 +08:00
|
|
|
rev: v3.10.0
|
2015-01-05 08:05:20 +08:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
2023-07-02 03:41:17 +08:00
|
|
|
args: [--py38-plus, --add-import, 'from __future__ import annotations']
|
2022-03-26 02:12:21 +08:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2023-08-01 15:08:59 +08:00
|
|
|
rev: v3.0.1
|
2022-03-26 02:12:21 +08:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
2017-03-13 09:01:29 +08:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-08-01 15:08:59 +08:00
|
|
|
rev: v3.10.1
|
2017-03-13 09:01:29 +08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-07-02 03:41:17 +08:00
|
|
|
args: [--py38-plus]
|
2022-03-26 02:12:21 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-autopep8
|
2023-08-29 13:38:18 +08:00
|
|
|
rev: v2.0.4
|
2017-07-13 09:35:24 +08:00
|
|
|
hooks:
|
2022-03-26 02:12:21 +08:00
|
|
|
- id: autopep8
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-08-01 15:08:59 +08:00
|
|
|
rev: 6.1.0
|
2020-02-06 03:10:42 +08:00
|
|
|
hooks:
|
2022-03-26 02:12:21 +08:00
|
|
|
- id: flake8
|
2019-02-01 11:19:10 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-08-22 14:16:07 +08:00
|
|
|
rev: v1.5.1
|
2019-02-01 11:19:10 +08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2021-06-15 02:30:37 +08:00
|
|
|
additional_dependencies: [types-all]
|