Skip to content

Commit 27591c7

Browse files
committed
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.
1 parent c13610f commit 27591c7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
default_install_hook_types: ["pre-commit", "commit-msg"]
99
repos:
1010
- repo: https://github.com/compilerla/conventional-pre-commit
11-
rev: v4.1.0
11+
rev: v4.2.0
1212
hooks:
1313
- id: conventional-pre-commit
1414
stages: [commit-msg]
1515
args: []
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.11.7
17+
rev: v0.12.1
1818
hooks:
1919
- id: ruff
2020
args: [ --fix ]
2121
- id: ruff-format
2222
- repo: https://github.com/pre-commit/mirrors-mypy
23-
rev: v1.15.0
23+
rev: v1.16.1
2424
hooks:
2525
- id: mypy
2626
args: [ --install-types, --non-interactive, --no-strict-optional, --ignore-missing-imports ]

src/clapper/click.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ class AliasedGroup(click.Group):
483483
just set ``cls=AliasedGroup`` parameter in click.group decorator.
484484
"""
485485

486-
def get_command(self, ctx, cmd_name):
486+
def get_command(self, ctx, cmd_name): # noqa: RET503
487487
"""get_command with prefix aliasing."""
488488
rv = click.Group.get_command(self, ctx, cmd_name)
489489
if rv is not None:
@@ -495,7 +495,7 @@ def get_command(self, ctx, cmd_name):
495495
if len(matches) == 1:
496496
return click.Group.get_command(self, ctx, matches[0])
497497

498-
ctx.fail(f"Too many matches: {', '.join(sorted(matches))}") # noqa: RET503
498+
ctx.fail(f"Too many matches: {', '.join(sorted(matches))}")
499499

500500

501501
def user_defaults_group(

0 commit comments

Comments
 (0)