From 7fbc7581243bf5552f6c82057a1fc521d90d087f Mon Sep 17 00:00:00 2001 From: nikstur Date: Mon, 3 Aug 2026 12:08:00 +0200 Subject: [PATCH 1/2] nixos/image/amend-repart-definitions: appease new ruff lints --- nixos/modules/image/amend-repart-definitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/image/amend-repart-definitions.py b/nixos/modules/image/amend-repart-definitions.py index 939340266ab7..be8a207726fd 100644 --- a/nixos/modules/image/amend-repart-definitions.py +++ b/nixos/modules/image/amend-repart-definitions.py @@ -13,8 +13,8 @@ files using the same mechanism. """ import json -import sys import shutil +import sys from pathlib import Path From 39896afd7a920c6c081b39e7a6f4b78af6143efc Mon Sep 17 00:00:00 2001 From: nikstur Date: Mon, 3 Aug 2026 12:09:26 +0200 Subject: [PATCH 2/2] nixos/image/repart-image: black -> ruff Reduces the number of tools we rely on and speeds up the build. --- nixos/modules/image/repart-image.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix index 9b4447b18816..129aad48d2f8 100644 --- a/nixos/modules/image/repart-image.nix +++ b/nixos/modules/image/repart-image.nix @@ -86,7 +86,6 @@ let depsBuildBuild = [ ruff ]; nativeBuildInputs = [ python3 - black mypy ]; } @@ -94,8 +93,8 @@ let install ${./amend-repart-definitions.py} $out patchShebangs --build $out - black --check --diff $out - ruff check --line-length 88 $out + ruff format --check $out + ruff check $out mypy --strict $out '';