Replace pre-commit with prek and lint YAML
This commit is contained in:
4 files changed
+49
-38
No files matched your search
@@ -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" },
|
||||
]
|
||||
Reference in new issue
Block a user