Update the pre-commit hooks

This commit is contained in:
Dunedan 2025-05-26 17:19:03 +02:00
parent d111d4cc84
commit b42ea94c3c
No known key found for this signature in database
GPG key ID: 885B16854284E0B2
3 changed files with 6 additions and 8 deletions

View file

@ -23,9 +23,9 @@ repos:
^binaries/data/mods/public/maps/.*\.xml ^binaries/data/mods/public/maps/.*\.xml
) )
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.0 rev: v0.11.11
hooks: hooks:
- id: ruff - id: ruff-check
args: args:
- --output-format=full - --output-format=full
exclude: ^source/tools/webservices/ exclude: ^source/tools/webservices/
@ -45,7 +45,7 @@ repos:
files: ^binaries/ files: ^binaries/
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$) exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$)
- repo: https://github.com/scop/pre-commit-shfmt - repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-2 rev: v3.11.0-1
hooks: hooks:
- id: shfmt - id: shfmt
args: args:
@ -57,7 +57,7 @@ repos:
hooks: hooks:
- id: shellcheck - id: shellcheck
- repo: https://github.com/igorshubovych/markdownlint-cli - repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0 rev: v0.45.0
hooks: hooks:
- id: markdownlint - id: markdownlint
language_version: 22.14.0 language_version: 22.14.0
@ -67,7 +67,7 @@ repos:
^source/third_party/ ^source/third_party/
) )
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.35.1 rev: v1.37.1
hooks: hooks:
- id: yamllint - id: yamllint
args: args:

View file

@ -46,14 +46,12 @@ ignore = [
"PTH", "PTH",
"S101", "S101",
"S314", "S314",
"S320",
"S603", "S603",
"S607", "S607",
"T20", "T20",
"TD002", "TD002",
"TD003", "TD003",
"TRY003", "TRY003",
"UP038",
"W505" "W505"
] ]

View file

@ -144,7 +144,7 @@ def main() -> None:
logger = init_logger(log_level) logger = init_logger(log_level)
if not args.relaxng_schema.exists(): if not args.relaxng_schema.exists():
logging.error( logger.error(
"RELAX NG schema file doesn't exist. Please create the file: %s. You can do that by " "RELAX NG schema file doesn't exist. Please create the file: %s. You can do that by "
'running "pyrogenesis -dumpSchema" in the "binaries/system" directory', 'running "pyrogenesis -dumpSchema" in the "binaries/system" directory',
args.relaxng_schema, args.relaxng_schema,