Skip to content

Commit afa35ce

Browse files
committed
Added pylint fixes
1 parent 4983652 commit afa35ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None:
2222
# Build a mapping source -> list[(name, help)]
2323
sections: dict[str, list[tuple[str, str]]] = {}
2424
for cmd_name in self.list_commands(ctx):
25-
cmd = self.get_command(ctx, cmd_name)
25+
cmd = self.get_command(ctx, cmd_name) # pylint: disable=W0621
2626
if cmd is None:
2727
continue
2828
source = getattr(cmd, "source", "Other")
@@ -32,7 +32,7 @@ def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None:
3232

3333
# Write sections in a stable order (Builder, Manager, Other)
3434
order = ["Builder", "Manager"] + [
35-
s for s in sections.keys() if s not in ("Builder", "Manager")
35+
s for s in sections.keys() if s not in ("Builder", "Manager") # pylint: disable=C0201
3636
]
3737
written_any = False
3838
for sec in order:

0 commit comments

Comments
 (0)