Add ruff.toml to exclude .xsh files from ruff linting

Ruff cannot parse xonsh syntax ($(), @()), so xonsh scripts
must be excluded via force-exclude.
This commit is contained in:
Oleks
2026-03-15 13:10:00 +02:00
parent 49fd58b363
commit 20740d8735
2 changed files with 10 additions and 5 deletions
+8 -5
View File
@@ -133,7 +133,7 @@
{ {
"s390x-linux" = s390xOverlays; "s390x-linux" = s390xOverlays;
} }
.${target} or []; .${target} or [ ];
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
crossSystem.config = crossSystem.config =
@@ -152,13 +152,16 @@
inherit (pkgs) attic-client; inherit (pkgs) attic-client;
}; };
} }
.${target} or {}; .${target} or { };
in in
{ {
name = target; name = target;
value = packages // crossOnlyPackages // { value =
default = packages.hello-world; packages
}; // crossOnlyPackages
// {
default = packages.hello-world;
};
} }
) (builtins.attrNames crossTargets) ) (builtins.attrNames crossTargets)
); );
+2
View File
@@ -0,0 +1,2 @@
force-exclude = true
extend-exclude = ["*.xsh"]