Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff.toml support #28

Closed
KhazAkar opened this issue Apr 4, 2023 · 2 comments · Fixed by #30
Closed

Ruff.toml support #28

KhazAkar opened this issue Apr 4, 2023 · 2 comments · Fixed by #30

Comments

@KhazAkar
Copy link

KhazAkar commented Apr 4, 2023

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?

@jhossbach
Copy link
Member

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!

@KhazAkar
Copy link
Author

KhazAkar commented 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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants