aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <madshougesen@gmail.com>2024-06-25 02:31:20 +0200
committerGitHub <noreply@github.com>2024-06-24 17:31:20 -0700
commitb5ae342ab28919a8083b589a587b030ad859592e (patch)
tree7026e52e240ef75f34deb088521ce658b7d715bf
parent4baa2f9db2bf9e772c46efb0c3fa0daad5e8abfd (diff)
feat: support docformatter (#472)
-rw-r--r--lua/conform/formatters/docformatter.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/docformatter.lua b/lua/conform/formatters/docformatter.lua
new file mode 100644
index 0000000..fa2edb0
--- /dev/null
+++ b/lua/conform/formatters/docformatter.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://pypi.org/project/docformatter/",
+ description = "docformatter automatically formats docstrings to follow a subset of the PEP 257 conventions.",
+ },
+ command = "docformatter",
+ args = { "--in-place", "$FILENAME" },
+ stdin = false,
+}