summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/autopep8.lua
blob: 3d5b015cafd3112a40211d9bcf83027a35370ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/hhatto/autopep8",
    description = "A tool that automatically formats Python code to conform to the PEP 8 style guide.",
  },
  command = "autopep8",
  args = { "-" },
  range_args = function(self, ctx)
    return { "-", "--line-range", tostring(ctx.range.start[1]), tostring(ctx.range["end"][1]) }
  end,
}