I have a config file named ruff.toml in my directory. If I run ruff format . --config ~/ruff.toml, everything is fine. However, if I put the following settings in vscode
Ruff: Format failed (error: invalid value '~/ruff.toml' for '--config ' tip: A --config flag must either be a path to a .toml configuration file or a TOML <KEY> = <VALUE> pair overriding a specific configuration option It looks like you were trying to pass a path to a configuration file. The path ~/ruff.toml does not exist For more information, try '--help'.
I have a config file named
ruff.toml
in my directory. If I runruff format . --config ~/ruff.toml
, everything is fine. However, if I put the following settings in vscodethen I got the error: