From b5ae342ab28919a8083b589a587b030ad859592e Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Tue, 25 Jun 2024 02:31:20 +0200 Subject: feat: support docformatter (#472) --- lua/conform/formatters/docformatter.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/docformatter.lua (limited to 'lua/conform/formatters') 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, +} -- cgit v1.2.3-70-g09d2