diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94b4d43..612141d 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.7 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.17.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(