Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down
4 changes: 2 additions & 2 deletions src/clapper/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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(
Expand Down
Loading