Skip to content

Commit f7d0909

Browse files
committed
Fixes mypy pre-commit checking.
1 parent ff3f72a commit f7d0909

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ repos:
5555
- id: mypy
5656
args: [--no-strict-optional, --ignore-missing-imports]
5757
additional_dependencies: ["pydantic>2.0", "toml"]
58+
exclude: |
59+
(?x)^(
60+
test.*
61+
)$
5862
- repo: https://github.com/jsh9/pydoclint
5963
rev: 0.5.6
6064
hooks:

bumpversion/aliases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AliasedGroup(RichGroup):
1616
If there were a command called ``push``, it would accept ``pus`` as an alias (so long as it was unique)
1717
"""
1818

19-
def get_command(self, ctx: Context, cmd_name: str) -> Optional[click.Command]:
19+
def get_command(self, ctx: Context, cmd_name: str) -> Optional[click.Command]: # type: ignore[return]
2020
"""Given a context and a command name, this returns a Command object if it exists or returns None."""
2121
rv = click.Group.get_command(self, ctx, cmd_name)
2222
if rv is not None:

0 commit comments

Comments
 (0)