Ruff

Latest version: v0.8.6

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 28

2024.4.0

This release upgrades the bundled Ruff version to v0.1.14 and adds two additional settings
to the extension:

- `ruff.lint.enable`: Defaults to `true`. Set to `false` to use Ruff for formatting exclusively.
- `ruff.ignoreStandardLibrary`: Defaults to `true`. Set to `false` to disable the extension's
standard library exclusion logic.

**Full Changelog**: https://github.com/astral-sh/ruff-vscode/compare/2024.2.0...2024.4.0

2024.2

The formatter now formats code according to the Ruff 2024.2 style guide. Read the [changelog](./CHANGELOG.md030) for a detailed list of stabilized style changes.

`isort`: Use one blank line after imports in typing stub files ([9971](https://github.com/astral-sh/ruff/pull/9971))

Previously, Ruff used one or two blank lines (or the number configured by `isort.lines-after-imports`) after imports in typing stub files (`.pyi` files).
The [typing style guide for stubs](https://typing.readthedocs.io/en/latest/source/stubs.html#style-guide) recommends using at most 1 blank line for grouping.
As of this release, `isort` now always uses one blank line after imports in stub files, the same as the formatter.

`build` is no longer excluded by default ([10093](https://github.com/astral-sh/ruff/pull/10093))

Ruff maintains a list of directories and files that are excluded by default. This list now consists of the following patterns:

- `.bzr`
- `.direnv`
- `.eggs`
- `.git`
- `.git-rewrite`
- `.hg`
- `.ipynb_checkpoints`
- `.mypy_cache`
- `.nox`
- `.pants.d`
- `.pyenv`
- `.pytest_cache`
- `.pytype`
- `.ruff_cache`
- `.svn`
- `.tox`
- `.venv`
- `.vscode`
- `__pypackages__`
- `_build`
- `buck-out`
- `dist`
- `node_modules`
- `site-packages`
- `venv`

Previously, the `build` directory was included in this list. However, the `build` directory tends to be a not-unpopular directory
name, and excluding it by default caused confusion. Ruff now no longer excludes `build` except if it is excluded by a `.gitignore` file
or because it is listed in `extend-exclude`.

`--format` is no longer a valid `rule` or `linter` command option

Previously, `ruff rule` and `ruff linter` accepted the `--format <FORMAT>` option as an alias for `--output-format`. Ruff no longer
supports this alias. Please use `ruff rule --output-format <FORMAT>` and `ruff linter --output-format <FORMAT>` instead.

2024.2.0

This release upgrades the bundled Ruff version to v0.1.13 and adds Alpine Linux support
to the extension.

**Full Changelog**: https://github.com/astral-sh/ruff-vscode/compare/2024.0.0...2024.2.0

2024.0.0

This release upgrades the bundled Ruff version to v0.1.11 and adds support for Notebook-wide
code actions on save via the `notebook.codeActionsOnSave` setting.

**Full Changelog**: https://github.com/astral-sh/ruff-vscode/compare/2023.60.0...2024.0.0

2023.60.0

This release upgrades the bundled Ruff version to v0.1.9.

**Full Changelog**: https://github.com/astral-sh/ruff-vscode/compare/2023.58.0...2023.60.0

2023.58.0

This release avoids surfacing errors when formatting files with syntax errors.

**Full Changelog**: https://github.com/astral-sh/ruff-vscode/compare/2023.56.0...2023.58.0

Page 6 of 28

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.