Possible to define a default/fallback config? #12063
Unanswered
BryceBeagle
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That's an interesting use case. I don't think there's currently a better way of doing what you want. How do other tools discover your configuration in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
We're working on implementing a ruff framework in our monorepo where we have the following constraints
/config/ruff.toml
ruff.toml
(s)extend = "/config/ruff.toml"
, and then either enable or disable a couple specific rulesruff.toml
s/config/ruff.toml
's rules should be the default for all code, unless otherwise overridden in a localruff.toml
Some approaches we considered:
--config=/config/ruff.toml
--config
flags and passing both the central and local configs--config
flags is not supported--config
with a file and instead using--config "extend = '/config/ruff.toml'"
extend
is explicitly blocked from being used with--config
--config
if the the library doesn't have anyruff.toml
of it's ownruff.toml
s, but not all.$XDG_CONFIG_HOME=/config
so that the default config fallback described here would pick it as the defaultdirs
crate$HOME/Library/Application Support
too is even less tenableThe question is: is there a better way to do this without getting hacky?
Beta Was this translation helpful? Give feedback.
All reactions