about summary refs log tree commit diff
path: root/nixos/modules/system/etc/check-build-composefs-dump.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/system/etc/check-build-composefs-dump.sh')
-rwxr-xr-xnixos/modules/system/etc/check-build-composefs-dump.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/system/etc/check-build-composefs-dump.sh b/nixos/modules/system/etc/check-build-composefs-dump.sh
new file mode 100755
index 000000000000..da61651d1a5d
--- /dev/null
+++ b/nixos/modules/system/etc/check-build-composefs-dump.sh
@@ -0,0 +1,8 @@
+#! /usr/bin/env nix-shell
+#! nix-shell -i bash -p black ruff mypy
+
+file=$1
+
+black --check --diff $file
+ruff --line-length 88 $file
+mypy --strict $file