aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
+}