koxudaxi / ruff-pycharm-plugin

PyCharm plugin for ruff. This plugin provides reformat code using ruff.
MIT License
174 stars 7 forks source link

(🎁) Show errors in `pyproject.toml` file #390

Open KotlinIsland opened 4 months ago

KotlinIsland commented 4 months ago

It would actually be highly based if the plugin could run on pyproject.toml

[tool.ruff]
target-version = "py312"
asdf = true
> ruff check
ruff failed
  Cause: Failed to parse C:\Users\AMONGUS\projects\test-python\pyproject.toml
  Cause: TOML parse error at line 521, column 1
    |
521 | [tool.ruff]
    | ^^^^^^^^^^^
unknown field `asdf`

So we could show the error in the toml file:

[tool.ruff] # ruff failed: unknown field `asdf`
target-version = "py312"
asdf = true