aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-06-01 21:14:43 +0200
committerGitHub <noreply@github.com>2024-06-01 12:14:43 -0700
commit8b147ca7abccbb19dd952dbb7aeebcdd56b02aee (patch)
tree8ff97bf7ef83461a64a9cdd54f3fa83716df3a85 /lua/conform
parentfb3810a02267cd9ec55dd359c747634341a9ed07 (diff)
feat(python): support pyink (#427)
* feat: support pyink * doc: shorten pyink description --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Diffstat (limited to 'lua/conform')
-rw-r--r--lua/conform/formatters/pyink.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/conform/formatters/pyink.lua b/lua/conform/formatters/pyink.lua
new file mode 100644
index 0000000..cce1059
--- /dev/null
+++ b/lua/conform/formatters/pyink.lua
@@ -0,0 +1,15 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/google/pyink",
+ description = "A Python formatter, forked from Black with a few different formatting behaviors.",
+ },
+ command = "pyink",
+ args = {
+ "--stdin-filename",
+ "$FILENAME",
+ "--quiet",
+ "-",
+ },
+ stdin = true,
+}