Closed luctowers closed 7 months ago
settings.json
{ "ruff.lint.args": ["--config=/path/to/.ruff.toml"] }
/path/to/.ruff.toml
line-length = 80 indent-width = 4 [format] quote-style = "double" indent-style = "tab"
Operating System: Debian (Devcontainer running on Docker for Mac) Python Version: 3.12 Ruff Version: 0.2.1 Extension Version: v2024.10.0
When I format my python code with the above setup it does not obey the config file.
Setups that do work for me:
.ruff.toml
ruff format --config=/path/to/.ruff.toml
Ah sorry, you need to specify the config file for the format command:
format
{ "ruff.format.args": ["--config=/path/to/.ruff.toml"] }
I see, awesome thanks :)
settings.json
/path/to/.ruff.toml
Operating System: Debian (Devcontainer running on Docker for Mac) Python Version: 3.12 Ruff Version: 0.2.1 Extension Version: v2024.10.0
When I format my python code with the above setup it does not obey the config file.
Setups that do work for me:
.ruff.toml
in the root of my projectruff format --config=/path/to/.ruff.toml