From 9a07f60f7499cdc76ed40af62bb9a50ac928d7d2 Mon Sep 17 00:00:00 2001 From: pmav99 Date: Sat, 3 Feb 2024 02:12:36 +0200 Subject: feat: Add reorder-python-imports formatter (#284) --- lua/conform/formatters/reorder-python-imports.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/reorder-python-imports.lua diff --git a/lua/conform/formatters/reorder-python-imports.lua b/lua/conform/formatters/reorder-python-imports.lua new file mode 100644 index 0000000..e8d1c75 --- /dev/null +++ b/lua/conform/formatters/reorder-python-imports.lua @@ -0,0 +1,10 @@ +--@type conform.FileFormatterConfig- +return { + meta = { + url = "https://github.com/asottile/reorder-python-imports", + description = "Rewrites source to reorder python imports", + }, + command = "reorder-python-imports", + args = { "--exit-zero-even-if-changed", "-" }, + stdin = true, +} -- cgit v1.2.3-70-g09d2