aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/reorder-python-imports.lua10
1 files changed, 10 insertions, 0 deletions
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,
+}