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"]
|
|
|
|
|
2023-04-05 15:35:38 +00:00
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
|
|
rev: v0.0.261
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
2023-04-05 15:35:38 +00:00
|
|
|
- id: ruff
|
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/"
|