Fixed a bug where python-lsp-ruff would not fall back to the python executable if ruff was not found for the given executable by @chris-reeves in python-lsp/python-lsp-ruff#70
Code formatting with ruff has been reformatted in this new release, ruff format is now called to apply formatting. In addition, the default rules for formatting (namely import sorting) has been removed. To get formatting of imports via textDocument/formatting, add format = ["I"] to your config.
Other changes with this release:
New support for various features of ruff (target-version, unsafe-fixes, preview )
An updated severity customization that allows for pattern matching (via the startswith method) instead of full rule codes
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps python-lsp-ruff from 1.6.0 to 2.0.2.
Release notes
Sourced from python-lsp-ruff's releases.
Commits
f5bcc65
bump pyproject to v2.0.21dd2b83
add subcommand to ruff callc018265
bump version8a6fac9
Fall back to python module if ruff executable is missinga4fac02
Bump version in pyprojectd50b8f5
Update required python version2d41c6d
Update READMEf810710
add pattern matching to severities (#66)8a0270c
Add target version and preview to formatter (#64)5d7338d
Add setting for enabling/disabling Preview rules (#54)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show