2019-08-22 01:56:02 +08:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/psf/black
|
2021-07-03 16:16:33 +08:00
|
|
|
rev: 21.6b0
|
2019-08-22 01:56:02 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-07-03 16:16:33 +08:00
|
|
|
rev: v4.0.1
|
2019-08-22 01:56:02 +08:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
2021-04-16 15:35:49 +08:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2021-07-03 16:16:33 +08:00
|
|
|
rev: v2.19.4
|
2021-04-16 15:35:49 +08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py36-plus]
|