aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/ruff.lua
blob: ea9d6c298894dfc413e9e1866303a5d7c0bfd859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
return {
  meta = {
    url = "https://beta.ruff.rs/docs/",
    description = "An extremely fast Python linter, written in Rust.",
  },
  command = "ruff",
  args = {
    "--fix",
    "-e",
    "-n",
    "--stdin-filename",
    "$FILENAME",
    "-",
  },
  stdin = true,
  cwd = require("conform.util").root_file({
    "pyproject.toml",
    "ruff.conf",
  }),
}