Is there a way to enable `ruff` only for certain t...
# general
p
Is there a way to enable
ruff
only for certain targets (in BUILD files)?
d
p
More-so the opposite--leave
black
the default but conditionally use
ruff
for certain projects]
d
Oops, misunderstood. The ruff configuration discovery seems to work pretty well with pants: https://docs.astral.sh/ruff/configuration/#config-file-discovery So you could have ruff enabled globally with no global rules, and then have a ruff.toml that enables rules certain packages. You can use “extends” to pull in a common config even. Would that help in your case?
p
hmm yeah that might work--i'll see if i can get that working