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