Replace pre-commit with prek and lint YAML

This commit is contained in:
ponas committed 2026-10-23 02:18:50 +02:00
1 parent 6ae99528dd
commit c2f30c8ca4
4 files changed
+49 -38

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.11.7"
hooks = [
{ id = "ruff", args = ["--fix", "--exit-non-zero-on-fix"] },
{ id = "ruff-format" },
]
[[repos]]
repo = "https://github.com/adamchainz/django-upgrade"
rev = "1.24.0"
hooks = [
{ id = "django-upgrade", args = ["--target-version", "5.2"] },
]
[[repos]]
repo = "https://github.com/adrienverge/yamllint"
rev = "v1.38.0"
hooks = [
{ id = "yamllint" },
]