Ruff uses a custom versioning scheme that uses the minor version number for breaking changes and the patch version number for bug fixes. Ruff does not yet have a stable API; once Ruff's API is stable, the major version number and semantic versioning will be used.
Minor version increases will occur when:
1.0.0, however, it should generally be avoided.Patch version increases will occur when:
The minimum supported Rust version required to compile Ruff is listed in the rust-version key of the [workspace.package] section in Cargo.toml. It may change in any release (minor or patch). It will never be newer than N-2 Rust versions, where N is the latest stable version. For example, if the latest stable Rust version is 1.85, Ruff's minimum supported Rust version will be at most 1.83.
This is only relevant to users who build Ruff from source. Installing Ruff from the Python package index usually installs a pre-built binary and does not require Rust compilation.
A preview mode is available to enable new, unstable rules and features, e.g., support for a new file type.
The preview mode is intended to help us collect community feedback and gain confidence that changes are a net-benefit.
The preview mode is not intended to gate access to work that is incomplete or features that we are likely to remove. However, we reserve the right to make changes to any behavior gated by the mode including the removal of preview features or rules.
When modifying or adding rules, we use the following guidelines:
0.6.1 then a rule will not be eligible for stability until 0.8.0Fixes have three applicability levels:
Fixes for rules may be introduced at a lower applicability, then promoted to a higher applicability. Reducing the applicability of a fix is not a breaking change. The applicability of a given fix may change when the preview mode is enabled.
Visual Studio Code doesn't support pre-release tags for extensions. Consequently, Ruff uses the following scheme to distinguish between stable and preview releases:
Stable releases use even numbers in minor version component: 2024.30.0, 2024.32.0, 2024.34.0, … Preview releases use odd numbers in minor version component: 2024.31.0, 2024.33.0, 2024.35.0, …