aboutsummaryrefslogtreecommitdiff
path: root/apheleia-formatters.el
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2025-04-27 17:21:24 -0700
committerGitHub <noreply@github.com>2025-04-27 17:21:24 -0700
commit0c41a5a52c6af7ef9ce44a6e93a5ebacdc679c91 (patch)
treecd74a38c980180d02ed82a09f59ddc13cf7d6f78 /apheleia-formatters.el
parent2b491144fe157867ce1cc4538a9562edff57c891 (diff)
Pass --stdin-filename to Black (#360)
Option was added in Black 21.4b0 so should be relatively widely available.
Diffstat (limited to 'apheleia-formatters.el')
-rw-r--r--apheleia-formatters.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el
index f591b19..75374fa 100644
--- a/apheleia-formatters.el
+++ b/apheleia-formatters.el
@@ -32,6 +32,7 @@
(black . ("black"
(when (apheleia-formatters-extension-p "pyi") "--pyi")
(apheleia-formatters-fill-column "--line-length")
+ "--stdin-filename" filepath
"-"))
(brittany . ("brittany"))
(buildifier . ("buildifier" "-type"