nixpkgs/pkgs/games/anki/patches/skip-formatting-python-code.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
777 B
Diff
Raw Normal View History

2023-04-12 13:19:00 +02:00
From 104572dc7ebb75061b867158ce3d4311d8cf4594 Mon Sep 17 00:00:00 2001
From: Euan Kemp <euank@euank.com>
2023-04-12 13:19:00 +02:00
Date: Thu, 6 Jul 2023 10:05:15 +0900
2023-11-01 12:50:18 +01:00
Subject: [PATCH] Skip formatting Python code.
2023-11-01 12:50:18 +01:00
Co-authored-by: Pavel Sobolev <paveloom@riseup.net>
---
2023-11-01 12:50:18 +01:00
pylib/tools/hookslib.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/pylib/tools/hookslib.py b/pylib/tools/hookslib.py
2023-11-01 12:50:18 +01:00
index 6361c633e..6b16d3ec1 100644
--- a/pylib/tools/hookslib.py
+++ b/pylib/tools/hookslib.py
2023-11-01 12:50:18 +01:00
@@ -208,4 +208,3 @@ def write_file(path: str, hooks: list[Hook], prefix: str, suffix: str):
os.environ["USERPROFILE"] = os.environ["HOME"]
with open(path, "wb") as file:
file.write(code.encode("utf8"))
- subprocess.run([sys.executable, "-m", "black", "-q", path], check=True)
2023-11-01 12:50:18 +01:00
--
2.42.0