nixbot

builds
1treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 123PTH123 `open()` should be replaced by `Path.open()`4 --> modules/nixos/hermes/nix-store-binds.py:21:65 |621 | with open("/proc/cmdline") as f:7 | ^^^^822 | words = f.read().split()923 | info = next(w.split("=", 1)[1] for w in words if w.startswith("regInfo="))10 |11help: Replace with `Path.open()`1213PTH123 `open()` should be replaced by `Path.open()`14 --> modules/nixos/hermes/nix-store-binds.py:28:615 |1626 | lower = "/sysroot/nix/.ro-store"1727 | store = "/sysroot/nix/store"1828 | with open(f"{lower}/{closure_dir}/store-paths") as f:19 | ^^^^2029 | for line in f:2130 | name = line.strip().removeprefix("/nix/store/")22 |23help: Replace with `Path.open()`2425PTH114 `os.path.islink()` should be replaced by `Path.is_symlink()`26 --> modules/nixos/hermes/nix-store-binds.py:37:1227 |2835 | if os.path.lexists(dst):2936 | continue3037 | if os.path.islink(src):31 | ^^^^^^^^^^^^^^3238 | os.symlink(os.readlink(src), dst)3339 | elif os.path.isdir(src):34 |35help: Replace with `Path(...).is_symlink()`3637PTH211 `os.symlink` should be replaced by `Path.symlink_to`38 --> modules/nixos/hermes/nix-store-binds.py:38:1339 |4036 | continue4137 | if os.path.islink(src):4238 | os.symlink(os.readlink(src), dst)43 | ^^^^^^^^^^4439 | elif os.path.isdir(src):4540 | os.mkdir(dst)46 |47help: Replace with `Path(...).symlink_to(...)`4849PTH115 `os.readlink()` should be replaced by `Path.readlink()`50 --> modules/nixos/hermes/nix-store-binds.py:38:2451 |5236 | continue5337 | if os.path.islink(src):5438 | os.symlink(os.readlink(src), dst)55 | ^^^^^^^^^^^5639 | elif os.path.isdir(src):5740 | os.mkdir(dst)58 |59help: Replace with `Path(...).readlink()`6061PTH112 `os.path.isdir()` should be replaced by `Path.is_dir()`62 --> modules/nixos/hermes/nix-store-binds.py:39:1463 |6437 | if os.path.islink(src):6538 | os.symlink(os.readlink(src), dst)6639 | elif os.path.isdir(src):67 | ^^^^^^^^^^^^^6840 | os.mkdir(dst)6941 | bind(src, dst)70 |71help: Replace with `Path(...).is_dir()`7273PTH102 `os.mkdir()` should be replaced by `Path.mkdir()`74 --> modules/nixos/hermes/nix-store-binds.py:40:1375 |7638 | os.symlink(os.readlink(src), dst)7739 | elif os.path.isdir(src):7840 | os.mkdir(dst)79 | ^^^^^^^^8041 | bind(src, dst)8142 | else:82 |83help: Replace with `Path(...).mkdir()`8485PTH123 `open()` should be replaced by `Path.open()`86 --> modules/nixos/hermes/nix-store-binds.py:43:1387 |8841 | bind(src, dst)8942 | else:9043 | open(dst, "w").close()91 | ^^^^9244 | bind(src, dst)93 |94help: Replace with `Path.open()`9596Found 8 errors.9798traversed 466 files99emitted 316 files for processing100formatted 184 files (0 changed) in 726ms101Error: failed to finalise formatting: formatting failures detected