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
|
2024-03-26 08:44:36 +00:00
|
|
|
rev: v3.15.2
|
2022-12-31 17:33:20 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-02-10 15:19:50 +00:00
|
|
|
args: ["--py38-plus"]
|
2022-12-31 17:33:20 +00:00
|
|
|
|
2023-07-18 07:39:51 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-03-26 08:44:36 +00:00
|
|
|
rev: v0.3.4
|
2022-10-14 14:53:06 +00:00
|
|
|
hooks:
|
2023-04-20 11:07:41 +00:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix]
|
2023-12-11 22:43:42 +00:00
|
|
|
- id: ruff-format
|
2022-10-14 14:53:06 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-17 11:56:05 +00:00
|
|
|
rev: v4.5.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/"
|