aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/blue.lua
blob: 6869339bc88d876cf22da940faaf463a5ef5c0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local util = require("conform.util")
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/grantjenks/blue",
    description = "The slightly less uncompromising Python code formatter.",
  },
  command = "blue",
  args = {
    "--stdin-filename",
    "$FILENAME",
    "--quiet",
    "-",
  },
  cwd = util.root_file({
    "setup.cfg",
    "pyproject.toml",
    "tox.ini",
    ".blue",
  }),
}