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

Allow ruff 0.2.x; disable default enabled formatters #80

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

magnuslarsen
Copy link
Contributor

@magnuslarsen magnuslarsen commented Feb 7, 2024

This fixes #79 - there are no deprecated/breaking changes that affects python-lsp-ruff, so we can safely bump to include ruff 0.2.x

And now that ruff has a formatter that is enabled by default, we should disable the default-enabled formatters, like python-lsp-black does:
https://github.com/python-lsp/python-lsp-black/blob/307e87dbf74ff0227991d88cbc734113ce3fff68/pylsp_black/plugin.py#L60-L61

(I had an annoying issue with these and ruff fighting)

Ref: https://astral.sh/blog/ruff-v0.2.0 - https://github.com/astral-sh/ruff/releases/tag/v0.2.0

pylsp_ruff/plugin.py Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
@magnuslarsen magnuslarsen changed the title Allow ruff 0.3.x; disable default enabled formatters Allow ruff 0.2.x; disable default enabled formatters Feb 8, 2024
@jhossbach
Copy link
Member

LGTM, thanks a lot for your contribution!

@jhossbach jhossbach merged commit f9824d2 into python-lsp:main Feb 9, 2024
5 checks passed
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 this pull request may close these issues.

Ruff 0.2.0 Support
3 participants