2022-10-14 14:53:06 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
|
2022-12-31 17:33:20 +00:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
|
|
rev: v3.3.1
|
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-02-10 15:19:50 +00:00
|
|
|
args: ["--py38-plus"]
|
2022-12-31 17:33:20 +00:00
|
|
|
|
2022-10-18 07:39:10 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-04-04 13:42:14 +00:00
|
|
|
rev: 23.3.0
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-01-29 10:30:50 +00:00
|
|
|
rev: 5.12.0
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: ["--profile", "black"]
|
|
|
|
|
2022-10-18 07:39:10 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2022-11-24 06:37:57 +00:00
|
|
|
rev: 6.0.0
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2023-03-01 16:37:50 +00:00
|
|
|
additional_dependencies:
|
|
|
|
- flake8-bugbear
|
2022-10-14 14:53:06 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-24 06:37:57 +00:00
|
|
|
rev: v4.4.0
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
2022-12-05 19:34:33 +00:00
|
|
|
- id: fix-encoding-pragma
|
|
|
|
args: [--remove]
|
2022-10-14 14:53:06 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: "tests/dicts/io/input/"
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
2023-01-12 12:13:42 +00:00
|
|
|
exclude: "images/"
|