You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is config option for this project also applies for ruff.toml or only for pyproject.toml? If not, is it possible to have possibility to pass ruff.toml instead of pyproject.toml?
If a pyproject.toml (and currently only that) is present most of the config options that you give via pylsp are ignored.
We can extend this behavior to do the same if a ruff.toml is present.
This also means that we have to check if a pyproject.toml file actually contains [tool.ruff] and otherwise ignore it.
Thanks for the clue!
Activity
jhossbach commentedon Apr 4, 2023
If a
pyproject.toml(and currently only that) is present most of the config options that you give viapylspare ignored.We can extend this behavior to do the same if a
ruff.tomlis present.This also means that we have to check if a
pyproject.tomlfile actually contains[tool.ruff]and otherwise ignore it.Thanks for the clue!
KhazAkar commentedon Apr 4, 2023
You're welcome, glad that helped :)
I'll keep this issue open for implementation of mentioned support & enhacement for handling pyproject.toml ;)