summaryrefslogtreecommitdiff
blob: 2d02db3324fcc765388a5ea4140321d6e201f0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
Remove dependency on dev-python/black used to format the generated hooks.py
file as it's not relevant in a packaging use case.

From: Lucio Sauer <watermanpaint@posteo.net>
--- a/pylib/tools/hookslib.py
+++ b/pylib/tools/hookslib.py
@@ -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)