Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2b3bb0

Browse files
committed
ci: Fix Ruff warnings
1 parent bac553d commit f2b3bb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

duties.py

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

241241

242242
@duty
243-
def test(ctx: Context, *cli_args: str, match: str = "", snapshot: str = "report") -> None:
243+
def test(ctx: Context, *cli_args: str, match: str = "", snapshot: str = "report") -> None: # noqa: PT028
244244
"""Run the test suite.
245245
246246
Parameters:

src/mkdocstrings_handlers/python/_internal/rendering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def do_format_attribute(
261261
def do_order_members(
262262
members: Sequence[Object | Alias],
263263
order: Order | list[Order],
264-
members_list: bool | list[str] | None,
264+
members_list: bool | list[str] | None, # noqa: FBT001
265265
) -> Sequence[Object | Alias]:
266266
"""Order members given an ordering method.
267267
@@ -522,7 +522,7 @@ def _get_formatter() -> Callable[[str, int], str]:
522522

523523
def _get_ruff_formatter() -> Callable[[str, int], str] | None:
524524
try:
525-
from ruff.__main__ import find_ruff_bin
525+
from ruff.__main__ import find_ruff_bin # noqa: PLC0415
526526
except ImportError:
527527
return None
528528

@@ -558,7 +558,7 @@ def formatter(code: str, line_length: int) -> str:
558558

559559
def _get_black_formatter() -> Callable[[str, int], str] | None:
560560
try:
561-
from black import InvalidInput, Mode, format_str
561+
from black import InvalidInput, Mode, format_str # noqa: PLC0415
562562
except ModuleNotFoundError:
563563
return None
564564

0 commit comments

Comments
 (0)