ruff breaking changes
Updated December 4, 2026
On this page
Latest version 0.17.6, released November 19, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
ruff 0.17.5 breaking changes
- Behavior changed
B008
The flake8-bugbear B008 rule now ignores frozen dataclass instantiations, so code that was reported before may no longer be flagged. github.com - Behavior changed
G004
The autofix for G004 in flake8-logging-format is now marked unsafe. Users who run fixes with unsafe fixes enabled should review the rewritten code. github.com
ruff 0.17.2 breaking changes
- Behavior changed
PLR5501
The autofix for PLR5501 is now classed as unsafe when it deletes comments, so it is no longer applied by default and must be enabled explicitly with unsafe fixes. github.com - Behavior changed
PLW0120
The autofix for PLW0120 is now classed as unsafe when it deletes comments, so it is no longer applied by default and must be enabled explicitly with unsafe fixes. github.com - Behavior changed
UP035
The autofix for UP035 is now classed as unsafe when it deletes comments, so it is no longer applied by default and must be enabled explicitly with unsafe fixes. github.com
ruff 0.17.1 breaking changes
- Behavior changed
More collections and weakref containers are now treated as mutable, so rules that depend on mutability may flag code they did not flag before. github.com - Behavior changed
In preview mode, E271 to E274 no longer treat None, True, and False as keywords, so code that relied on those findings may now lint differently. github.com - Default changed
flake8-import-conventions.aliases
The default aliases used by the flake8-import-conventions rules were changed, so projects relying on the old defaults may see different results. github.com
ruff 0.17.0 breaking changes
- Removed
The conda-forge build no longer installs Python, so python -m ruff and import ruff stop working. Run ruff directly from PATH instead. github.com - Removed
ruff-lsp
The VS Code extension now always uses the native language server. Migrate settings using the migration guide and run ruff server instead. github.com - Behavior changed
Consumers of JUnit XML must read skipped instead of disabled on testsuite elements. github.com - Behavior changed
The default full output shows unsafe fixes and suggestions even when unsafe-fixes is off. Applying them still requires opt-in. github.com - Behavior changed
E501
Trailing pragma comments no longer count toward line length, so some existing lines may now be reported or reformatted differently. github.com - Behavior changed
I001
Trailing pragma comments no longer count toward line length when sorting imports, so existing imports may be reformatted. github.com - Behavior changed
W505
Trailing pragma comments no longer count toward doc line length, so results can differ for existing code. github.com - Default changed
DTZ001
The rule is no longer on by default. Enable it explicitly in the rule selection if you still want it. github.com - Default changed
DTZ005
The rule is no longer on by default. Enable it explicitly in the rule selection if you still want it. github.com - Default changed
DTZ006
The rule is no longer on by default. Enable it explicitly in the rule selection if you still want it. github.com
And 7 more in this version. Sign up to see every change
ruff 0.16.8 breaking changes
- Behavior changed
TC001
On Python 3.15 and later, TC001 now recommends lazy imports instead of TYPE_CHECKING blocks, which changes its reported findings and fixes. github.com - Behavior changed
TC002
On Python 3.15 and later, TC002 now recommends lazy imports instead of TYPE_CHECKING blocks, which changes its reported findings and fixes. github.com - Behavior changed
TC003
On Python 3.15 and later, TC003 now recommends lazy imports instead of TYPE_CHECKING blocks, which changes its reported findings and fixes. github.com - Behavior changed
UP035
UP035 no longer suggests the deprecated ByteString aliases, so code that relied on its suggested replacements will see different findings. github.com - Behavior changed
UP040
The autofix for UP040 is now always marked unsafe, so it will no longer apply without enabling unsafe fixes. github.com
ruff 0.16.7 breaking changes
- Behavior changed
ISC003
The autofix for ISC003 is now unsafe when it would create a docstring, so applying it with unsafe fixes enabled may change code behavior. github.com - Behavior changed
TID254
The TID254 rule no longer applies autofixes to imports with multiple members, so code relying on those fixes must be edited by hand. github.com - Behavior changed
UP035
The UP035 rule stops suggesting typing.no_type_check_decorator, which was removed from Python, so lint output for that code changes. github.com
Older versions
59 older versions, each with its first changes. Sign up to see every change
Show 59 older versions
ruff 0.16.4 breaking changes
- Behavior changed
FURB131
The preview rule FURB131 (delete-full-slice) is restricted to lists, so it no longer flags other types. Preview rules are opt-in, so only users who enable preview may see different results. github.com
ruff 0.16.1 breaking changes
- Behavior changed
FURB105
FURB105 fixes that remove unknown separators are now unsafe and no longer apply under safe fixing. Opt in to unsafe fixes to keep the automatic change. github.com - Behavior changed
PT018
PT018 fixes are now safe unless comments are present, in which case they are unsafe. Code relying on unsafe fixes being applied for PT018 may need to opt in explicitly. github.com
And 1 more in this version.
ruff 0.16.0 breaking changes
- Behavior changed
Filename, location and fix edit location fields in JSON output may be null rather than an empty string or row 1, column 1. Consumers parsing this output must handle null. github.com - Behavior changed
Ruff now formats Python code blocks in Markdown files by default, so format runs will change Markdown files unless this is disabled. github.com
And 21 more in this version.
ruff 0.15.21 breaking changes
- Behavior changed
C409
The preview behavior of flake8-comprehensions rule C409 (tuple comprehension) was removed, so preview users may see different results from this rule. github.com - Behavior changed
D418
The pydocstyle rule D418 no longer reports overload docstrings in stub files, so code relying on that report will change. github.com
And 2 more in this version.
ruff 0.15.20 breaking changes
- Removed
RUF076
The preview rule pytest-fixture-autouse (RUF076) was removed. Configurations that select RUF076 or this rule must drop it. github.com
ruff 0.15.19 breaking changes
- Behavior changed
The fix suggestions for PLC2801 on __floor__, __trunc__, __length_hint__ and __matmul__ were updated, which may change autofix output for existing code. github.com
ruff 0.15.18 breaking changes
- Renamed
PYI033
The flake8-pyi rule PYI033 is now named legacy-type-comment. Update any noqa comments or rule selections that still use the old name. github.com
ruff 0.15.17 breaking changes
- Behavior changed
np.in1d
The NPY201 rule no longer offers an automatic fix for np.in1d, so code that relied on the fix must be updated by hand. github.com - Behavior changed
PLR2004
Comparisons against Python version numbers no longer trigger PLR2004, so existing lint runs may report fewer diagnostics. github.com
ruff 0.15.14 breaking changes
- Behavior changed
C417
C417 no longer reports lambdas that have positional-only parameters, so code previously flagged by it will pass. github.com - Behavior changed
SIM101
The SIM101 autofix now keeps f-string source text unchanged, which alters the output of applied fixes. github.com
And 1 more in this version.
ruff 0.15.13 breaking changes
- Behavior changed
PYI034
PYI034 now only checks in-place operations against the enclosing class, so some diagnostics it previously reported may no longer appear. github.com
ruff 0.15.10 breaking changes
- Behavior changed
Code with multi-line f-string elements that targets Python versions before 3.12 is now rejected instead of accepted, so such code must be rewritten. github.com - Behavior changed
RUF019
The RUF019 rule no longer assumes f-string interpolations are side-effect free, so code it previously flagged may no longer be reported. github.com
ruff 0.15.9 breaking changes
- Behavior changed
Code using a starred expression as the value of another starred expression is now reported as invalid syntax, so such code must be rewritten. github.com - Behavior changed
RUF010
The RUF010 autofix is marked unsafe when it would delete a comment, so it is no longer applied by default and must be enabled explicitly. github.com
ruff 0.15.8 breaking changes
- Behavior changed
S603
The flake8-bandit S603 rule now treats sys.executable as trusted input, so subprocess calls using it are no longer reported. github.com
ruff 0.15.6 breaking changes
- Default changed
Some rules are no longer enabled by default in preview mode. If you rely on them, select them explicitly in your configuration. github.com
ruff 0.15.5 breaking changes
- Behavior changed
In preview mode, Ruff now discovers Markdown files by default, so users running preview may see Markdown files checked or formatted without opting in. github.com
ruff 0.15.3 breaking changes
- Removed
Ruff no longer explicitly supports .qmd files. To keep linting them, set the extension option to map qmd to markdown. github.com - Removed
ruff.__main__
ruff.__main__ was removed in ruff 0.15.3 pypi.org
And 2 more in this version.
ruff 0.15.2 breaking changes
- Default changed
In preview, Ruff now enables 412 rules by default instead of the stable 59. Preview users who want the old defaults must set lint select to E4, E7, E9 and F. github.com
ruff 0.15.1 breaking changes
- Behavior changed
The GitHub output format now uses lowercase `ruff` as the program name. Tools that match the old `Ruff` name in output need updating. github.com
ruff 0.15.0 breaking changes
- Removed
Release binaries for ppc64 are no longer published; users on that architecture must build Ruff manually. github.com - Behavior changed
The ruff:debian and ruff:debian-slim Docker images now use Debian 13 Trixie instead of Debian 12 Bookworm. github.com
And 9 more in this version.
ruff 0.14.14 breaking changes
- Behavior changed
Several lint rule fixes that would delete comments are now unsafe, so they will not be applied by default and need an explicit opt-in to run. github.com
ruff 0.14.13 breaking changes
- Behavior changed
The WASM build now requires logging to be initialized explicitly. Code that uses the WASM build must add that initialization call. github.com
ruff 0.14.11 breaking changes
- Behavior changed
PLR1714
The rule PLR1714 no longer reports certain cases where members are identical, so existing lint results may change. github.com - Behavior changed
src
Ruff now includes configured src directories when resolving module graphs, which can change results for projects that use src. github.com
And 1 more in this version.
ruff 0.14.1 breaking changes
- Behavior changed
B905
The automatic fix for B905 is now classed as unsafe, so it is no longer applied by default and must be enabled with unsafe fixes. github.com - Behavior changed
B912
The automatic fix for B912 is now classed as unsafe, so it is no longer applied by default and must be enabled with unsafe fixes. github.com
ruff 0.14.0 breaking changes
- Default changed
Ruff's default and latest Python versions were updated for 3.14. Code that relies on the previous default Python version may see different results, so set the target Python version explicitly if you need the old behavior. github.com
ruff 0.13.3 breaking changes
- Configuration changed
--add-noqa
Passing --add-noqa together with --diff is now rejected as a conflicting option combination. Drop one of the two flags in scripts that used both. github.com
ruff 0.13.2 breaking changes
- Default changed
Ruff now includes .pyw files by default when linting and formatting. If you don't want them checked, exclude them in your configuration. github.com
ruff 0.13.1 breaking changes
- Behavior changed
B004
The fix for unreliable-callable-check is now always marked unsafe, so it is no longer applied by default and must be enabled explicitly with unsafe fixes. github.com - Behavior changed
FURB171
The fix for single-item-membership-test is now always marked unsafe, so it is no longer applied by default and must be enabled explicitly with unsafe fixes. github.com
And 1 more in this version.
ruff 0.13.0 breaking changes
- Removed
non-pep604-isinstance
The rule is gone, so configurations selecting UP038 no longer have it. Remove references to it. github.com - Removed
pandas-df-variable-name
The rule is gone, so configurations selecting PD901 no longer have it. Remove references to it. github.com
And 11 more in this version.
ruff 0.12.11 breaking changes
- Behavior changed
PTH100
The autofix for PTH100 is now marked unsafe because it can change behavior, so it will not be applied by default. Review its changes before applying it. github.com
ruff 0.12.10 breaking changes
- Behavior changed
E731
The E731 fix for class assignments is now marked unsafe, so it is no longer applied as a display-only suggestion. Code relying on the previous behavior should review fixes applied under this rule. github.com
ruff 0.12.9 breaking changes
- Behavior changed
PLE2513
The pylint rule PLE2513 now uses lowercase hex characters, matching the formatter. Code with uppercase hex characters may now be reported by this rule. github.com
ruff 0.12.8 breaking changes
- Behavior changed
PLC0207
Autofixes for PLC0207 are now flagged unsafe in that case, so they no longer apply under default fix settings. Users relying on automatic fixes may need to enable unsafe fixes or apply them by hand. github.com
ruff 0.12.1 breaking changes
- Behavior changed
Single-quoted f-strings and t-strings with a newline in the format specifier are now disallowed. Code that relied on this syntax must put the format specifier on one line or use a triple-quoted string. github.com - Behavior changed
analyze.direction
The variant names for analyze.direction now use corrected casing. Configuration that wrote the old casing may need to be updated to match. github.com
ruff 0.12.0 breaking changes
- Removed
suspicious-xmle-tree-usage
The S320 rule is gone, so configuration or noqa comments that select it no longer have an effect. github.com - Behavior changed
Ruff now flags syntax that requires newer Python versions, such as match statements before 3.10, and some errors CPython's compiler emits. Code that previously passed checks may now report errors. github.com
And 8 more in this version.
ruff 0.11.12 breaking changes
- Behavior changed
UP010
The UP010 autofix is now marked unsafe when it would delete comments, so it no longer applies under the default safe-fix setting. Review or enable unsafe fixes if you relied on it removing comments. github.com
ruff 0.11.11 breaking changes
- Renamed
AIR312
Rules previously under the AIR312 code are moved to AIR302 in preview mode. Update any rule selection or noqa comments that reference AIR312. github.com
ruff 0.11.10 breaking changes
- Behavior changed
FURB116
The FURB116 autofix is marked safe only for number literals, so other cases will no longer be applied by default. Review or apply those fixes manually if needed. github.com - Behavior changed
PIE804
The autofix for PIE804 is marked unsafe when the dictionary contains comments, so it will not be applied by default. Review or apply it manually if needed. github.com
ruff 0.11.9 breaking changes
- Default changed
In preview, Ruff now uses the latest supported Python version when reporting version-related syntax errors if no version is configured. Users who rely on the previous default should set the target Python version explicitly. github.com
ruff 0.11.3 breaking changes
- Renamed
AIR301
The preview airflow rule code AIR301 is now AIR002. Update any config, noqa comments or selections that name AIR301. github.com - Renamed
AIR302
The preview airflow rule code AIR302 is now AIR301. Update any config, noqa comments or selections that name AIR302. github.com
And 4 more in this version.
ruff 0.11.0 breaking changes
- Behavior changed
blanket-noqa
The stabilized PGH004 rule also flags blanket file-level noqa comments, not only line-level ones. Code with blanket file-level noqa comments may now get new violations. github.com - Configuration changed
target-version
Ruff now reads requires-python from pyproject.toml files even when they lack a [tool.ruff] section, so the inferred Python version can differ from before. Set target-version explicitly to keep the previous behavior. github.com
ruff 0.10.0 breaking changes
- Removed
Ruff no longer treats if 0: or if False: blocks as type-checking blocks; use a local TYPE_CHECKING variable instead. github.com - Renamed
RUF035
The unsafe-markup-use rule moved from RUF035 to S704; update rule selections and noqa comments that name RUF035. github.com
And 11 more in this version.
ruff 0.9.10 breaking changes
- Behavior changed
The GitLab output serializer moved the rule code from the description field to the check_name field. Tools that read the rule code from description must read check_name instead. github.com
ruff 0.9.8 breaking changes
- Behavior changed
PLW1507
The autofix for PLW1507 is now marked unsafe, so it will not be applied automatically when only safe fixes are enabled. Review the rule's output or enable unsafe fixes if you relied on the automatic fix. github.com - Behavior changed
PYI030
The autofix for PYI030 is now marked unsafe when it would delete comments, so it will not be applied automatically when only safe fixes are enabled. github.com
And 1 more in this version.
ruff 0.9.6 breaking changes
- Behavior changed
A005
The flake8-builtins A005 rule now compares module names the way upstream does, which can change which modules are reported. github.com - Behavior changed
PLE1310
The pylint PLE1310 rule no longer reports calls where the object type and argument type mismatch, and its custom escape handling was removed. github.com
And 2 more in this version.
ruff 0.9.5 breaking changes
- Renamed
PYI019
The PYI019 rule was renamed and its message improved. Configurations or noqa comments that select or ignore PYI019 by its old name may need updating. github.com
ruff 0.9.3 breaking changes
- Behavior changed
SIM201
The automatic fix for SIM201 is now labeled unsafe, so it is only applied when unsafe fixes are enabled. github.com - Behavior changed
SIM202
The automatic fix for SIM202 is now labeled unsafe, so it is only applied when unsafe fixes are enabled. github.com
ruff 0.9.0 breaking changes
- Renamed
builtin-module-shadowing
Update rule selections and noqa comments that use the old name to stdlib-module-shadowing (A005). github.com - Renamed
RUF025
Update rule selections and noqa comments that use RUF025 to RUF037. github.com
And 3 more in this version.
ruff 0.8.6 breaking changes
- Behavior changed
Errors from attempted fixes are no longer printed by default. Pass --verbose to see them. github.com
ruff 0.8.5 breaking changes
- Renamed
Some rules were renamed to follow the naming convention. Update any rule codes or names used in your configuration or noqa comments. github.com - Behavior changed
D403
The first word is now determined by splitting on the first whitespace character, which can change which docstrings are flagged. github.com
And 1 more in this version.
ruff 0.8.2 breaking changes
- Configuration changed
unconventional-import-alias
The syntax check for import aliases supplied in configuration for unconventional-import-alias was improved, so configuration values that were previously accepted may now be rejected. Check your alias settings for ICN001. github.com
ruff 0.8.1 breaking changes
- Behavior changed
Several rules now skip .pyi stub files, so lint results for stubs may change. Review any stub-related lint suppressions you rely on. github.com - Behavior changed
Fixes for unsorted __all__ and __slots__ are now unsafe when the sequence contains complex comments, so they are skipped unless unsafe fixes are enabled. github.com
ruff 0.8.0 breaking changes
- Removed
missing-type-cls
The deprecated rule ANN102 is no longer available, so configuration selecting or ignoring it must be updated. github.com - Removed
missing-type-self
The deprecated rule ANN101 is no longer available, so configuration selecting or ignoring it must be updated. github.com
And 14 more in this version.
ruff 0.7.0 breaking changes
- Removed
lint.allow-unused-imports
The lint.allow-unused-imports setting has been removed. Use lint.pyflakes.allow-unused-imports instead. github.com - Renamed
TRY302
The useless-try-except rule now uses code TRY203 instead of TRY302. Update rule selections and noqa comments that reference TRY302. github.com
And 7 more in this version.
ruff 0.6.0 breaking changes
- Renamed
RUF025
The rule moved from RUF025 to C420, so configuration selecting RUF025 must be updated. github.com - Behavior changed
xml.etree.ElementTree
The flake8-import-conventions rules now include xml.etree.ElementTree in their default conventions, which can change lint results. github.com
And 4 more in this version.
ruff 0.5.0 breaking changes
- Removed
--no-show-source
The deprecated --no-show-source option was removed. Use --output-format=concise instead. github.com - Removed
--show-source
The deprecated --show-source option was removed. Use --output-format=full instead. github.com
And 26 more in this version.
ruff 0.4.0 breaking changes
- Behavior changed
B006
The flake8-bugbear rule B006 now treats functions whose body only raises NotImplemented as stubs. Violations in such functions will no longer be reported. github.com - Behavior changed
urllib.request.urlopen
The flake8-bandit rule S310 now allows urllib.request.urlopen calls when the argument is a static Request. Code that relied on this being reported will see fewer S310 violations. github.com
ruff 0.3.0 breaking changes
- Removed
S410
The preview lint rule S410 (suspicious-lxml-import) was removed. Stop selecting or ignoring it. github.com - Behavior changed
Formatted output changes, such as blank lines around class docstrings and stub files, parenthesized type hints and module docstring formatting. Expect code to be reformatted. github.com
And 3 more in this version.
ruff 0.2.0 breaking changes
- Removed
NURSERY
The NURSERY rule selector was removed; select nursery rules through preview or explicit codes instead. github.com - Removed
PLR1706
Preview rule and-or-ternary (PLR1706) was removed in ruff 0.2.0 github.com
And 10 more in this version.
ruff 0.1.0 breaking changes
- Removed
--format
Use --output-format with ruff check instead of --format. github.com - Removed
format
The format setting can no longer configure output format; use output-format instead. github.com
And 5 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.