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

Support new ruff version, fix wrong call to ruff through PATH #52

Merged
merged 4 commits into from
Oct 20, 2023

Conversation

jhossbach
Copy link
Member

@jhossbach jhossbach commented Oct 19, 2023

This is a continuation of #48 since I want to capture all the new changes for the upcoming release in a version (and I didn't know renaming a branch closes a PR).

In particular, PR will

  • enable support for ruff 0.1.0 and the new configuration option unsafe-fixes, and
  • remove the now redundant call to ruff by lookup in the PATH and replace it with sys.executable -m ruff since this should be more reliable with different venv wrappers.

Closes #51. Closes #49.

Does the following:
 - Updates the pyproject.toml file to only support ruff>=0.1.0
 - Add the `--unsafe-fixes` option to the LSP config

Co-authored-by: Julian Hoßbach <julian.hossbach@gmx.de>
@jhossbach jhossbach merged commit be27747 into main Oct 20, 2023
4 checks passed
@jhossbach jhossbach deleted the pr_v160 branch October 20, 2023 08:34
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.

Virtual environment not respected with pipx lsp_format_on_save deleting entire file contents
2 participants