From 2e153b555d2b934d4f83264ab522037b8c638932 Mon Sep 17 00:00:00 2001 From: Yannick DAYER Date: Tue, 1 Jul 2025 11:11:20 +0200 Subject: [PATCH 1/2] chore(pre-commit): autoupdate the hooks version Run pre-commit autoupdate. Fixed an issue with ruff requiring the noqa statement for RET503 to be at the function definition level. --- .pre-commit-config.yaml | 6 +++--- src/clapper/click.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94b4d43..2f11d0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,19 +8,19 @@ default_install_hook_types: ["pre-commit", "commit-msg"] repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v4.1.0 + rev: v4.2.0 hooks: - id: conventional-pre-commit stages: [commit-msg] args: [] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.7 + rev: v0.12.1 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.16.1 hooks: - id: mypy args: [ --install-types, --non-interactive, --no-strict-optional, --ignore-missing-imports ] diff --git a/src/clapper/click.py b/src/clapper/click.py index 296f48b..0848837 100644 --- a/src/clapper/click.py +++ b/src/clapper/click.py @@ -483,7 +483,7 @@ class AliasedGroup(click.Group): just set ``cls=AliasedGroup`` parameter in click.group decorator. """ - def get_command(self, ctx, cmd_name): + def get_command(self, ctx, cmd_name): # noqa: RET503 """get_command with prefix aliasing.""" rv = click.Group.get_command(self, ctx, cmd_name) if rv is not None: @@ -495,7 +495,7 @@ def get_command(self, ctx, cmd_name): if len(matches) == 1: return click.Group.get_command(self, ctx, matches[0]) - ctx.fail(f"Too many matches: {', '.join(sorted(matches))}") # noqa: RET503 + ctx.fail(f"Too many matches: {', '.join(sorted(matches))}") def user_defaults_group( From b86eea5b56bcdf152ffbb525ff57d5b7b7520197 Mon Sep 17 00:00:00 2001 From: Yannick DAYER Date: Thu, 7 Aug 2025 17:21:12 +0200 Subject: [PATCH 2/2] chore(pre-commit): autoupdate the hooks version Run pre-commit autoupdate. --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f11d0b..612141d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,13 +14,13 @@ repos: stages: [commit-msg] args: [] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.1 + rev: v0.12.7 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.17.1 hooks: - id: mypy args: [ --install-types, --non-interactive, --no-strict-optional, --ignore-missing-imports ]