Skip to content

scripts/container: Minor fixups suggested by ruff

Nathan Chancellor linux-kbuild 1 version In review

Get series with b4
b4 am 20260122-scripts-container-ruff-fixes-v1-0-fd1b928c3f10@kernel.org change-id 20260122-scripts-container-ruff-fixes-4d38fc92771a

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scripts/container: Turn runtimes class variable into a tuplescripts/container+1 -11 reply
2/3scripts/container: Use list comprehension in get_names()scripts/container+1 -11 reply
3/3scripts/container: Use iterable unpacking for _get_opts()scripts/container+4 -21 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGuillaume Tucker
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] scripts/container: Minor fixups suggested by ruff

Hi all,

This series fixes a few warnings that I see when running

  $ ruff check --select C4,RUF scripts/container

which were the few warnings from my personal ruff.toml that seemed most interesting.

I will apply these on top of the initial scripts/container change.

---
Nathan Chancellor (3):
scripts/container: Turn runtimes class variable into a tuple scripts/container: Use list comprehension in get_names() scripts/container: Use iterable unpacking for _get_opts()

 scripts/container | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

---
base-commit: 6eac13c876805f61bbb588eaff5ada0b6dc603e8
change-id: 20260122-scripts-container-ruff-fixes-4d38fc92771a

Best regards,

Signature · 1 line
Nathan Chancellor <[email protected]>