pre-commit-hooks/.pre-commit-config.yaml

43 lines
1.2 KiB
YAML
Raw Normal View History

repos:
2015-12-26 01:37:18 +08:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-04-07 02:24:38 +08:00
rev: v4.6.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
- id: check-yaml
- id: debug-statements
2019-02-12 11:57:37 +08:00
- id: double-quote-string-fixer
- id: name-tests-test
2015-01-05 08:05:20 +08:00
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
2015-01-05 08:05:20 +08:00
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
2017-03-13 09:01:29 +08:00
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
2017-03-13 09:01:29 +08:00
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
2017-07-13 09:35:24 +08:00
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
2020-02-06 03:10:42 +08:00
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
hooks:
- id: mypy
2021-06-15 02:30:37 +08:00
additional_dependencies: [types-all]