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
|
2021-12-24 12:47:17 +08:00
|
|
|
rev: v4.1.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
|
2015-01-05 08:05:20 +08:00
|
|
|
- id: check-docstring-first
|
2014-08-20 07:05:41 +08:00
|
|
|
- id: check-json
|
2015-01-01 04:24:22 +08:00
|
|
|
- id: check-added-large-files
|
2014-04-04 13:23:50 +08:00
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: name-tests-test
|
2019-02-12 11:57:37 +08:00
|
|
|
- id: double-quote-string-fixer
|
2015-01-05 08:05:20 +08:00
|
|
|
- id: requirements-txt-fixer
|
2021-04-06 01:08:26 +08:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2021-10-12 02:54:03 +08:00
|
|
|
rev: 4.0.1
|
2019-01-30 16:15:11 +08:00
|
|
|
hooks:
|
2014-04-14 08:58:19 +08:00
|
|
|
- id: flake8
|
2022-01-24 10:21:12 +08:00
|
|
|
additional_dependencies: [flake8-typing-imports==1.12.0]
|
2018-10-12 08:19:35 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-autopep8
|
2022-01-04 04:02:30 +08:00
|
|
|
rev: v1.6.0
|
2018-10-12 08:19:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: autopep8
|
2015-12-26 01:37:18 +08:00
|
|
|
- repo: https://github.com/asottile/reorder_python_imports
|
2022-03-15 06:18:05 +08:00
|
|
|
rev: v3.0.1
|
2015-01-05 08:05:20 +08:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
2022-01-16 08:24:05 +08:00
|
|
|
args: [--py37-plus, --add-import, 'from __future__ import annotations']
|
2017-03-13 09:01:29 +08:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-03-15 06:18:05 +08:00
|
|
|
rev: v2.31.1
|
2017-03-13 09:01:29 +08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2022-01-16 08:24:05 +08:00
|
|
|
args: [--py37-plus]
|
2017-07-13 09:35:24 +08:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2021-11-23 03:51:54 +08:00
|
|
|
rev: v2.2.1
|
2017-07-13 09:35:24 +08:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
2020-02-06 03:10:42 +08:00
|
|
|
args: [--py36-plus]
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2021-11-23 03:51:54 +08:00
|
|
|
rev: v1.20.0
|
2020-02-06 03:10:42 +08:00
|
|
|
hooks:
|
|
|
|
- id: setup-cfg-fmt
|
2019-02-01 11:19:10 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-03-22 06:31:27 +08:00
|
|
|
rev: v0.941
|
2019-02-01 11:19:10 +08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2021-06-15 02:30:37 +08:00
|
|
|
additional_dependencies: [types-all]
|