Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 21 lines 777 B view raw
1From 104572dc7ebb75061b867158ce3d4311d8cf4594 Mon Sep 17 00:00:00 2001 2From: Euan Kemp <euank@euank.com> 3Date: Thu, 6 Jul 2023 10:05:15 +0900 4Subject: [PATCH] Skip formatting Python code. 5 6Co-authored-by: Pavel Sobolev <paveloom@riseup.net> 7--- 8 pylib/tools/hookslib.py | 1 - 9 1 file changed, 1 deletion(-) 10 11diff --git a/pylib/tools/hookslib.py b/pylib/tools/hookslib.py 12index 6361c633e..6b16d3ec1 100644 13--- a/pylib/tools/hookslib.py 14+++ b/pylib/tools/hookslib.py 15@@ -208,4 +208,3 @@ def write_file(path: str, hooks: list[Hook], prefix: str, suffix: str): 16 os.environ["USERPROFILE"] = os.environ["HOME"] 17 with open(path, "wb") as file: 18 file.write(code.encode("utf8")) 19- subprocess.run([sys.executable, "-m", "black", "-q", path], check=True) 20-- 212.42.0