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
|
2022-02-22 23:32:15 +08:00
|
|
|
# If you update the version here, also update it in tox.ini (py*-pytestlatest-linters)
|
2023-09-12 17:32:23 +08:00
|
|
|
rev: 23.9.1
|
2019-08-22 01:56:02 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2021-09-24 03:07:15 +08:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-01-31 11:46:37 +08:00
|
|
|
rev: 5.12.0
|
2021-09-24 03:07:15 +08:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort (python)
|
2019-08-22 01:56:02 +08:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-29 10:01:29 +08:00
|
|
|
rev: v4.4.0
|
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
|
2023-10-03 18:48:37 +08:00
|
|
|
rev: v3.14.0
|
2021-04-16 15:35:49 +08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-07-23 18:35:28 +08:00
|
|
|
args: ["--py38-plus"]
|
2022-02-24 23:52:23 +08:00
|
|
|
# TODO: Enable mypy checker when the checks succeed
|
|
|
|
#- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
# rev: v0.931
|
|
|
|
# hooks:
|
|
|
|
# - id: mypy
|
|
|
|
# additional_dependencies: [types-setuptools]
|