astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
30.93k stars 1.02k forks source link

Invalid JSON schema on ruff lint settings #13003

Closed mash180sx closed 2 weeks ago

mash180sx commented 3 weeks ago

Is there any reason I get this error in my pyproject.toml file, using VS Code? It seems it's related to the corresponding JSON Schema.


[tool.ruff]
line-length = 88
target-version = "py312"
src = ["src/backend"]

[tool.ruff.lint]
ignore = []
select = ["E", "F", "I", "N"]
per-file-ignores = {"__init__.py" = ["F401"]}
isort = {known_first_party = ["app"]}
スクリーンショット 2024-08-20 15 58 22 スクリーンショット 2024-08-20 16 02 37
MichaReiser commented 3 weeks ago

You can hover the error to get an explanation

image

The issue seems to be that you use know_first_party with underscores instead of known-first-party