From b42ea94c3cb485a4ae3d1dfa8e65690a792c6c73 Mon Sep 17 00:00:00 2001 From: Dunedan Date: Mon, 26 May 2025 17:19:03 +0200 Subject: [PATCH] Update the pre-commit hooks --- .pre-commit-config.yaml | 10 +++++----- ruff.toml | 2 -- source/tools/entity/entvalidate.py | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3dd4802b38..d920583fa1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,9 +23,9 @@ repos: ^binaries/data/mods/public/maps/.*\.xml ) - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.0 + rev: v0.11.11 hooks: - - id: ruff + - id: ruff-check args: - --output-format=full exclude: ^source/tools/webservices/ @@ -45,7 +45,7 @@ repos: files: ^binaries/ exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$) - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.10.0-2 + rev: v3.11.0-1 hooks: - id: shfmt args: @@ -57,7 +57,7 @@ repos: hooks: - id: shellcheck - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.43.0 + rev: v0.45.0 hooks: - id: markdownlint language_version: 22.14.0 @@ -67,7 +67,7 @@ repos: ^source/third_party/ ) - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint args: diff --git a/ruff.toml b/ruff.toml index 96e8770ae6..7a026a8436 100644 --- a/ruff.toml +++ b/ruff.toml @@ -46,14 +46,12 @@ ignore = [ "PTH", "S101", "S314", - "S320", "S603", "S607", "T20", "TD002", "TD003", "TRY003", - "UP038", "W505" ] diff --git a/source/tools/entity/entvalidate.py b/source/tools/entity/entvalidate.py index 9527aeeba7..13a56f7928 100755 --- a/source/tools/entity/entvalidate.py +++ b/source/tools/entity/entvalidate.py @@ -144,7 +144,7 @@ def main() -> None: logger = init_logger(log_level) 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 " 'running "pyrogenesis -dumpSchema" in the "binaries/system" directory', args.relaxng_schema,