WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fcb1a7e

Browse files
committed
ci: Ignore some warnings
1 parent 167abb2 commit fcb1a7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

duties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def coverage(ctx: Context) -> None:
185185

186186

187187
@duty
188-
def test(ctx: Context, *cli_args: str, match: str = "") -> None:
188+
def test(ctx: Context, *cli_args: str, match: str = "") -> None: # noqa: PT028
189189
"""Run the test suite.
190190
191191
Parameters:

src/griffe2md/rendering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def do_format_attribute(
284284
def do_order_members(
285285
members: Sequence[Object | Alias],
286286
order: Order,
287-
members_list: bool | list[str] | None,
287+
members_list: bool | list[str] | None, # noqa: FBT001
288288
) -> Sequence[Object | Alias]:
289289
"""Order members given an ordering method.
290290
@@ -415,7 +415,7 @@ def do_filter_objects(
415415
@lru_cache(maxsize=1)
416416
def _get_black_formatter() -> Callable[[str, int], str]:
417417
try:
418-
from black import InvalidInput, Mode, format_str
418+
from black import InvalidInput, Mode, format_str # noqa: PLC0415
419419
except ModuleNotFoundError:
420420
logger.info("Formatting signatures requires Black to be installed.")
421421
return lambda text, _: text

0 commit comments

Comments
 (0)