Releases: astral-sh/ruff-vscode
2023.58.0
What's Changed
- Bump version to 2023.58.0 by @charliermarsh in #368
Full Changelog: 2023.56.0...2023.58.0
2023.56.0
What's Changed
- Build ARM Mac extension on M1 runners by @charliermarsh in #366
Full Changelog: 2023.54.0...2023.56.0
2023.54.0
What's Changed
- Surface Ruff errors as VS Code warnings by @charliermarsh in astral-sh/ruff-lsp#341
- Bump version to 2023.54.0 by @charliermarsh in #361
Full Changelog: 2023.52.0...2023.54.0
2023.52.0
What's Changed
- Add register-status hooks to extension by @charliermarsh in #350
- Bump Ruff version to v0.1.8 by @charliermarsh in #359
- Bump version to 2023.52.0 by @charliermarsh in #360
Full Changelog: 2023.50.0...2023.52.0
2023.50.0
What's Changed
- Avoid writing empty source on excluded files by @charliermarsh in astral-sh/ruff-lsp#317
- Bump version to 2023.50.0 by @charliermarsh in #339
Full Changelog: 2023.48.0...2023.50.0
2023.48.0
What's Changed
- Avoid removing all contents when formatting file with syntax error by @zanieb in astral-sh/ruff-lsp#314
- Bump version to 2023.48.0 by @charliermarsh in #337
Full Changelog: 2023.46.0...2023.48.0
2023.46.0
What's Changed
- Add note on isort enablement by @charliermarsh in #321
- chore: move
eslint
andprettier
configuration withinpackage.json
by @SauravMaheshkar in #322 - Change
showNotifications
to a window setting by @charliermarsh in #333 - Update with Notebook support by @dhruvmanila in #326
- Bump version to 2023.46.0 by @charliermarsh in #335
New Contributors
- @SauravMaheshkar made their first contribution in #322
- @dhruvmanila made their first contribution in #326
Full Changelog: 2023.44.0...2023.46.0
2023.44.0
Highlights
This release includes full support for using Ruff as a Python formatter via Ruff's ruff format
command.
You can configure Ruff to format Python code by marking it as your default formatter in VS Code's
settings.json
:
{
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
What's Changed
- Drop
-dev
suffix from 3.12 in CI by @zanieb in #306 - Remove experimental formatter flag by @charliermarsh in #308
- Add formatter to README by @charliermarsh in #286
- Bump Ruff to v0.1.2 by @charliermarsh in #309
- Bump version to v2023.44.0 by @charliermarsh in #310
Full Changelog: 2023.42.0...2023.44.0
2023.42.0
This release is required for compatibility with Ruff v0.1.0+
which includes breaking changes.
Ruff fixes are now labeled as "safe" or "unsafe". By default, the "Fix all" action will no longer apply unsafe
fixes. However, unsafe fixes can be applied manually with the "Quick fix" action. Application of unsafe fixes when
using "Fix all" can be enabled by setting unsafe-fixes = true
in your Ruff configuration file or adding
--unsafe-fixes
flag to the "Lint args" setting.
What's Changed
- Add missing "s" in deprecation message by @lyzlisa in #297
- Update
args
andrun
to uselint
prefix in readme by @zanieb in #299 - Add fix safety notes to readme by @zanieb in #298
- Bump to Python 3.12 in README by @charliermarsh in #301
- Bump ruff-lsp version to 0.0.41 by @charliermarsh in #302
- Bump Ruff version to 0.1.0 by @zanieb in #304
- Bump extension version to 2023.42.0 by @zanieb in #305
New Contributors
Full Changelog: 2023.40.0...2023.42.0
2023.40.0
Deprecations
- Deprecation:
ruff.args
has been renamed toruff.lint.args
(see: #293). - Deprecation:
ruff.run
has been renamed toruff.lint.run
(see: #293).
The extension will continue to respect the deprecated variants (ruff.args
and ruff.run
), but
they will be removed in a future release.
What's Changed
- Update README.md with black and URLs by @pamelafox in #282
- Expose LSP's format action by @charliermarsh in #287
- allow
enableExperimentalFormatter
to be configured in the workspace by @DetachHead in #290 - Move args and run settings to
lint.args
andlint.run
by @charliermarsh in #292 - Move
args
andrun
settings tolint.args
andlint.run
by @charliermarsh in #293 - Add a
format.args
setting to the VS Code extension by @charliermarsh in #294
New Contributors
- @pamelafox made their first contribution in #282
- @DetachHead made their first contribution in #290
Full Changelog: 2023.38.0...2023.40.0