Skip to content

Fail to recognize the Ruff config file path in the VSCode settings.json #413

@hypsoma

Description

@hypsoma

Environment

Ruff: v2024.12.0
VSCode: 1.86.2 (Universal)
OS: Mac Os 14.3

Description

"ruff.lint.args": [
      "--config=$HOME/.config/pyproject.toml"
    ],

Here is the error message.

Ruff: Lint failed (error: invalid value '$HOME/.config/pyproject.toml' for '--config <CONFIG_OPTION>' 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 `$HOME/.config/pyproject.toml` does not exist For more information, try '--help'. ) 

This path value used to be fine, but it seems to be invalid after the most recent update to Ruff or VSCode.

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions