Releases: python-lsp/python-lsp-ruff
Python LSP ruff v2.2.2
Python LSP ruff v2.2.1
Minor Bug Release
What's Changed
- Small adjustments to the 'Fix all' action text were made by @Shane-XB-Qian in #86
- @Ultimator14 fixed a bug where the custom executable was not used when fixing the
format
rules in #90
New Contributors
- @Shane-XB-Qian made their first contribution in #86
- @Ultimator14 made their first contribution in #90
Full Changelog: v2.2.0...v2.2.1
Python LSP ruff v2.2.0
With this minor release it is now possible to disable formatting using ruff with the formatEnabled
option.
What's Changed
- Add option to disable formatter by @jhossbach in #84
- Allow ruff 0.3.0 by @vodik in #85
New Contributors
Full Changelog: v2.1.0...v2.2.0
Python LSP ruff v2.1.0
Minor version update: This version will require ruff>=0.2.0
, which may lead to behavioural changes of the LSP. Please check out https://astral.sh/blog/ruff-v0.2.0 if you experience any changes.
What's Changed
- Allow ruff 0.2.x; disable default enabled formatters by @magnuslarsen in #80
- Bump to v2.1.0 in pyproject, update deps by @jhossbach in #81
Full Changelog: v2.0.2...v2.1.0
Python LSP ruff v2.0.2
Minor Bug fix release
What's Changed
- Fixed a bug where the default call to ruff would not use a subcommand in the call by @jhossbach in #75
Full Changelog: v2.0.1...v2.0.2
Python LSP ruff v2.0.1
Minor bug release
What's Changed
- Fixed a bug where
python-lsp-ruff
would not fall back to the python executable ifruff
was not found for the given executable by @chris-reeves in #70
New Contributors
- @chris-reeves made their first contribution in #70
Full Changelog: v2.0.0...v2.0.1
Python LSP ruff v2.0.0
Breaking changes in v2.0.0
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
Big thanks to everyone helping this project!
In Detail
- Remove python v3.7 testing from CI by @mmcshane in #58
- tighten cattrs dep by @jhossbach in #63
- Update 'unsafe' code actions (#55) by @jhossbach in #62
- Run
ruff format
when lsp formatting is invoked by @mmcshane in #57 - Add support for ruff
extension
option to enablejupyterlab-lsp
by @felix-cw in #59 - Support setting target-version by @jspricke in #60
- [feat] Add setting for enabling/disabling Preview rules by @magnuslarsen in #54
- Add target version and preview to formatter by @jhossbach in #64
- Add pattern matching to severities by @jhossbach in #66
- Update README, bump version by @jhossbach in #65
New Contributors
- @mmcshane made their first contribution in #58
- @felix-cw made their first contribution in #59
- @jspricke made their first contribution in #60
- @magnuslarsen made their first contribution in #54
Full Changelog: v1.6.0...v2.0.0
Python LSP ruff v1.6.0
What's Changed
- Support new ruff version, fix wrong call to ruff through PATH by @jhossbach in #52
- Authored by first-time constributor @kstrauser, thanks a lot for your contribution!
- Also thanks to @znd4 for pointing out the issue with
ruff
not being called from the correct virtual environment at times.
Version v1.6.0
is only compatible with ruff version 0.1.0
or higher, so make sure you update accordingly.
Full Changelog: v1.5.3...v1.6.0
Python LSP ruff v1.5.3
The main goal of this release is to allow users to keep ruff<0.1.0
if desired. The upcoming release v1.6.0
will be compatible with the latest version of ruff (see #48)
What's Changed
- settings: Don't try to disable flake8, document relevant limitation by @projectgus in #47
- Ruff minor v change fixup by @jhossbach in https://github.com/python-lsp/python-lsp-ruff/pull/
New Contributors
- @projectgus made their first contribution in #47
Full Changelog: v1.5.2...v1.5.3
Python LSP ruff v1.5.2
What's Changed
- Small grammatical fixes in readme by @tylerlaprade in #43
- Config bugfixes by @martinal in #44
- TOML dicts are formatted
{"tool" {"ruff": {..}}}
by @maerteijn in #45
New Contributors
- @tylerlaprade made their first contribution in #43
- @martinal made their first contribution in #44
- @maerteijn made their first contribution in #45
Full Changelog: v1.5.1...v1.5.2