unstale

pypi / ruff

ruff

What changed in ruff 0.0 to 0.17, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

41 breaking6 security4 deprecations77 new APIs and options26 performance149 behavior and defaults35 tooling320 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ruff 0.1774 changes

Breaking changes 5

  • flake8-builtins expands its checks in class scopes.

    0.17.0release notes

  • The conda-forge build no longer depends on Python, so python -m ruff and import ruff no longer work; use ruff directly from PATH.

    0.17.0release notes

  • Support for the legacy Python language server has been removed.

    0.17.0release notes

  • When neither target-version nor requires-python configures a Python version, Ruff now defaults to Python 3.11 instead of Python 3.10.

    0.17.0release notes

  • The formatter and I001, E501, and W505 consistently ignore trailing pragma comments when computing line length; existing imports may be reformatted.

    0.17.0release notes

Security 2

  • Implements the preview security rule tarfile-ignore-zeros-true.

    0.17.4release notes

  • macOS and Windows release executables and Ruff wheels are code-signed; macOS executables are also notarized, enabling publisher and binary-integrity verification.

    0.17.0release notes

Deprecations 1

  • ruff.nativeServer is deprecated and ignored because the Ruff VS Code extension now always uses the native language server.

    0.17.0release notes

New APIs and options 6

  • Implements the no-method-argument rule.

    0.17.5release notes

  • Adds the renamed-rule rule for detecting redirected renamed rules.

    0.17.5release notes

  • Adds the shared-clock-mock rule to the suspicious rule family.

    0.17.3release notes

  • Adds a configurable allowlist for magic-value-comparison (PLR2004).

    0.17.2release notes

  • Adds the preview complexity rule unnecessary-regular-expression-compile.

    0.17.2release notes

  • flake8-type-checking adds the notion of runtime-ambiguous references.

    0.17.0release notes

Performance 7

Behavior and default changes 21

  • Ignores frozen dataclass instantiations.

    0.17.5release notes

  • Marks the fix as unsafe, so Ruff no longer treats it as a safe autofix.

    0.17.5release notes

  • Expands redirected-noqa to cover other suppression comments.

    0.17.5release notes

  • Shows more nonprinting characters in diagnostic fix diffs.

    0.17.4release notes

  • Takes precedence in Ruff and ty diagnostics.

    0.17.4release notes

  • The pycodestyle rules no longer treat None, True, or False as keywords.

    0.17.1release notes

  • More collections and weakref containers are treated as mutable.

    0.17.1release notes

  • The preview flake8-bugbear rule now reports the method name and a more precise range.

    0.17.0release notes

  • These flake8-datetimez rules are no longer enabled by default.

    0.17.0release notes

  • The default full output format now shows unsafe fixes and suggestions requiring manual review regardless of unsafe-fixes; applying unsafe fixes still requires explicit opt-in.

    0.17.0release notes

  • flake8-type-checking no longer flags annotations in function scopes.

    0.17.0release notes

  • The refurb fix is marked unsafe and the rule moves to suspicious.

    0.17.0release notes

  • datetime as dt is now recognized as a conventional alias by flake8-import-conventions.

    0.17.0release notes

  • JUnit output uses a skipped attribute instead of disabled on testsuite elements and adds a skipped attribute to the root testsuites element.

    0.17.0release notes

  • The TID255 rule is stabilized and no longer in preview.

    0.17.0release notes

  • The TID254 rule is stabilized and no longer in preview.

    0.17.0release notes

  • The default regex now recognizes underscore-prefixed Unicode names, such as _次, as dummy variables.

    0.17.0release notes

  • The RUF071 rule is stabilized and no longer in preview.

    0.17.0release notes

  • The preview Ruff rule allows docstrings in strict mode.

    0.17.0release notes

  • When checking for syntax errors without a configured Python version, Ruff now defaults to Python 3.15 instead of Python 3.14.

    0.17.0release notes

  • Ruff uses Unicode 17 data for identifier normalization and named character escapes.

    0.17.0release notes

Tooling 3

  • Implements the pytest-raises-exception-group rule.

    0.17.5release notes

  • The conda-forge build now supports linux-riscv64, win-arm64, and linux-ppc64le platforms.

    0.17.0release notes

  • pyupgrade now suggests typing.TypeForm on Python 3.15.

    0.17.0release notes

Fixes and other changes 29

  • Fixes the autofix for parenthesized setattr calls.

    0.17.5release notes

  • Ruff no longer crashes when logging to a closed stderr pipe.

    0.17.5release notes

  • Does not offer a fix when write is nested in an expression.

    0.17.5release notes

  • Its import-alias fix no longer shadows names.

    0.17.5release notes

  • Fixes fixes that add or remove a keyword argument with a parenthesized value.

    0.17.5release notes

  • Fixes the autofix for parenthesized self annotations.

    0.17.5release notes

  • Prevents the fix from duplicating closing parentheses around the format string.

    0.17.5release notes

  • Accepts a bare raise before a semicolon.

    0.17.4release notes

  • Ruff and ty diagnostics honor CLICOLOR=0.

    0.17.4release notes

  • Extends the syntax-errors check for writes to __debug__ to attribute targets.

    0.17.4release notes

  • Fixes a panic on BOM-prefixed files.

    0.17.4release notes

  • Fixes avoid behavior changes and syntax errors in G004 fixes.

    0.17.4release notes

  • Allows match identifiers after a semicolon.

    0.17.4release notes

  • Reports collapsible elif clauses after a multi-statement if branch.

    0.17.4release notes

  • Avoids incorrect conversions to f-strings.

    0.17.3release notes

  • Treats backslash-escaped *args and **kwargs as documented.

    0.17.2release notes

  • Avoids false positives on starred elements.

    0.17.2release notes

  • Marks fixes unsafe when they delete comments.

    0.17.2release notes

  • Avoids syntax errors for type variables with starred constraints in UP040, UP046, UP047, and RUF053.

    0.17.2release notes

  • Marks fixes unsafe when they delete comments.

    0.17.2release notes

  • Fixes dedent behavior when there are multiple leading comments.

    0.17.1release notes

  • The rules no longer suggest invalid comprehensions.

    0.17.1release notes

  • Fixes false positives on quoted annotations.

    0.17.1release notes

  • The rule now detects legacy positional-only parameters in __new__ methods.

    0.17.1release notes

  • The fix is marked unsafe when it creates a docstring.

    0.17.0release notes

  • The useless-return fix now preserves trailing comments.

    0.17.0release notes

  • Avoids a false positive when pytest.raises is used in a with statement.

    0.17.0release notes

  • flake8-self allows private access on object.__new__(cls) instances.

    0.17.0release notes

  • flake8-tidy-imports skips lazy-import-mismatch in stubs.

    0.17.0release notes

ruff 0.16120 changes

Breaking changes 6

  • DTZ901 rejects tzinfo=None for datetime bounds.

    0.16.6release notes

  • Syntax errors now detect duplicate keyword arguments.

    0.16.4release notes

  • Semantic syntax errors in string type definitions are now emitted as F722.

    0.16.4release notes

  • Ruff enables 413 rules by default, up from 59, while removing 18 more opinionated E and F rules from the default set.

    0.16.0release notes

  • Checks additional PEP 585-compatible APIs, such as those from collections.abc.

    0.16.0release notes

  • The filename, location, end_location, and fix edit location fields may now be null instead of default values.

    0.16.0release notes

Security 3

  • The server avoids running uv format in untrusted workspaces.

    0.16.10release notes

  • Embeds archive checksums in the shell installer.

    0.16.7release notes

  • Checks keyword arguments as well as other arguments.

    0.16.3release notes

New APIs and options 10

  • Adds a pyupgrade rule for context manager iterator annotations.

    0.16.10release notes

  • Adds extend-banned-api configuration for flake8-tidy-imports.

    0.16.8release notes

  • Ruff recognizes the parent_mode argument for RUF064 and PTH103.

    0.16.8release notes

  • Adds a preview rule for default values on method receivers.

    0.16.7release notes

  • Category selectors are introduced for selecting rules.

    0.16.5release notes

  • Adds a rule to replace while 1 with while True.

    0.16.3release notes

  • An option lets developers opt out of human-readable names.

    0.16.1release notes

  • Ruff can format Python code blocks in Markdown files and does so by default.

    0.16.0release notes

  • Supports the same output formats as the linter, including github and gitlab for CI annotations.

    0.16.0release notes

  • Suppression comments can appear at the end of a line or on the line preceding a diagnostic, like noqa comments.

    0.16.0release notes

Performance 4

  • Reduces memory used by diagnostics.

    0.16.10release notes

  • Speeds up inherited configuration resolution.

    0.16.7release notes

  • Ruff releases now enable PGO for Linux x86-64, Linux ARM64, Windows x86-64, and macOS ARM64.

    0.16.3release notes

  • The unnecessary-future-import rule is faster.

    0.16.0release notes

Behavior and default changes 30

  • Ruff supports __lazy_modules__, including conditional assignments.

    0.16.8release notes

  • On Python 3.15 and later, Ruff prefers lazy imports over TYPE_CHECKING imports.

    0.16.8release notes

  • Fixes are now always marked unsafe.

    0.16.8release notes

  • Pragma comments are excluded from line length calculation for I001.

    0.16.6release notes

  • The rule moves to the restriction category, changing how it is categorized for configuration and rule selection.

    0.16.6release notes

  • The preview default rules and categories are updated.

    0.16.5release notes

  • Rules can now be defined without codes.

    0.16.5release notes

  • The server can offer display-only fixes and marks safe fixes as preferred.

    0.16.4release notes

  • The delete-full-slice rule is now restricted to lists.

    0.16.4release notes

  • The existing exception now includes ctypes.LittleEndianStructure and related types.

    0.16.4release notes

  • Registers formatting capabilities dynamically to exclude TOML files.

    0.16.2release notes

  • Fixes that remove unknown separators are now marked unsafe.

    0.16.1release notes

  • Fixes are safe by default and unsafe only when comments are present.

    0.16.1release notes

  • Fixes for this rule are now marked unsafe.

    0.16.1release notes

  • The airflow3-incompatible-function-signature rule is stabilized and no longer in preview.

    0.16.0release notes

  • blind-except is suppressed when the exception is logged through logging methods other than critical, error, and exception.

    0.16.0release notes

  • The missing-copyright-notice rule is stabilized and no longer in preview.

    0.16.0release notes

  • The unnecessary-from-float rule is stabilized and no longer in preview.

    0.16.0release notes

  • The sorted-min-max rule is stabilized and no longer in preview.

    0.16.0release notes

  • Recognizes additional common gettext usage patterns, such as assigning gettext to builtins._.

    0.16.0release notes

  • The implicit-string-concatenation-in-collection-literal rule is stabilized and no longer in preview.

    0.16.0release notes

  • The log-exception-outside-except-handler rule is stabilized and no longer in preview.

    0.16.0release notes

  • The invalid-bool-return-type rule is stabilized and no longer in preview.

    0.16.0release notes

  • The too-many-positional-arguments rule is stabilized and no longer in preview.

    0.16.0release notes

  • The stop-iteration-return rule is stabilized and no longer in preview.

    0.16.0release notes

  • The none-not-at-end-of-union rule is stabilized and no longer in preview.

    0.16.0release notes

  • The access-annotations-from-class-dict rule is stabilized and no longer in preview.

    0.16.0release notes

  • The duplicate-entry-in-dunder-all rule is stabilized and no longer in preview.

    0.16.0release notes

  • Check output now shows fixes.

    0.16.0release notes

  • Ruff suppression comments now insert a space after the colon.

    0.16.0release notes

Tooling 7

  • Warnings now include the rule name and code.

    0.16.8release notes

  • RUF039 and RUF055 now recognize re.prefixmatch.

    0.16.7release notes

  • Adds an autofix for PT020, allowing Ruff to automatically fix violations.

    0.16.6release notes

  • The flake8-use-pathlib rule now offers an autofix.

    0.16.4release notes

  • Pull diagnostics are now supported for notebook cells.

    0.16.4release notes

  • Rule codes in the statistics output are now hyperlinked.

    0.16.3release notes

  • The LSP now lints TOML files.

    0.16.1release notes

Fixes and other changes 60

  • Avoids false positives for calls with keyword arguments.

    0.16.9release notes

  • Updates LibCST-based fixes for Python 3.15.

    0.16.9release notes

  • Mentions stubs in the diagnostic message.

    0.16.9release notes

  • Avoids false positives for overloaded division.

    0.16.9release notes

  • Allows lazy imports to be used in deferred annotations.

    0.16.9release notes

  • Ruff now visits functional TypedDict keyword arguments correctly.

    0.16.8release notes

  • Ruff recognizes PEP-728 keywords on TypedDict classes.

    0.16.8release notes

  • Detects \Z in pytest.raises() match patterns.

    0.16.8release notes

  • The automatic fix preserves operand order.

    0.16.8release notes

  • Detects nested async with under a synchronous parent.

    0.16.8release notes

  • Ruff skips conversions when TypeVarTuple or ParamSpec have bounds or constraints.

    0.16.8release notes

  • Ruff recognizes quoted types in typing.TypeForm.

    0.16.8release notes

  • Stops recommending deprecated ByteString aliases.

    0.16.8release notes

  • Multiline fixes preserve required parentheses.

    0.16.8release notes

  • Stops defining __cached__ for Python 3.15.

    0.16.7release notes

  • Corrects the diagnostic for the conflict between D211 and D203.

    0.16.7release notes

  • Allows alternate nested quotes inside format spec interpolations.

    0.16.7release notes

  • Gates the PLW0133 check for ImportCycleError on Python 3.15.

    0.16.7release notes

  • Marks a fix unsafe when it would create a docstring.

    0.16.7release notes

  • Recognizes slice and frozendict generics.

    0.16.7release notes

  • Skips fixes for multi-member imports.

    0.16.7release notes

  • Stops recommending the removed typing.no_type_check_decorator.

    0.16.7release notes

  • ASYNC230 now recognizes builtins.open.

    0.16.6release notes

  • Fixes a panic on match subjects.

    0.16.6release notes

  • Unary plus is allowed in match patterns on Python 3.15.

    0.16.6release notes

  • PLW1514 now recognizes builtins.open.

    0.16.6release notes

  • Avoids emitting duplicate PT017 diagnostics.

    0.16.6release notes

  • Adds a display-only fix for os.listdir.

    0.16.6release notes

  • Ruff-specific suppressions no longer produce a lint.external hint.

    0.16.6release notes

  • Prevents a fix loop between TID254 and TID255.

    0.16.6release notes

  • Unary expressions are validated when parsing.

    0.16.6release notes

  • Detects blocking generic HTTP requests.

    0.16.5release notes

  • Allows timezone-safe strptime chains.

    0.16.5release notes

  • Respects side effects in lambda defaults.

    0.16.5release notes

  • The rule is skipped when the open argument is a file descriptor.

    0.16.4release notes

  • Fixes InvalidInstruction errors on Windows CPUs that do not support POPCNT.

    0.16.4release notes

  • The error message for mixed t-string and bytes syntax is aligned with CPython 3.14.

    0.16.4release notes

  • Syntax errors now detect parameters declared nonlocal.

    0.16.4release notes

  • The import-private-name rule now allows imports of os._exit.

    0.16.4release notes

  • Allows continue in finally on Python 3.8.

    0.16.3release notes

  • Makes the np.chararray autofix backwards-compatible.

    0.16.3release notes

  • Fixes false positives and negatives involving the %b format character.

    0.16.3release notes

  • Improves handling of concatenated strings.

    0.16.3release notes

  • Fixes a false positive with bools.

    0.16.3release notes

  • Fixes false negatives on negative numbers.

    0.16.3release notes

  • Avoids false positives on singledispatch functions.

    0.16.2release notes

  • Marks range as immutable.

    0.16.1release notes

  • The fix NFKC-normalizes keyword names.

    0.16.1release notes

  • Section detection is skipped inside RST directive bodies.

    0.16.1release notes

  • Fixes indexing of excluded nested Ruff workspaces.

    0.16.1release notes

  • The fix parenthesizes yield arguments.

    0.16.1release notes

  • Unknown enumeration values in LSP messages are handled gracefully.

    0.16.1release notes

  • Avoids a false positive when a variable is read in a finally clause.

    0.16.1release notes

  • Fixes a false positive involving unpacked arguments.

    0.16.1release notes

  • Syntax error noise is reduced by swallowing dedents like indents.

    0.16.1release notes

  • The fixer skips changes when a defaulted TypeVar precedes a non-defaulted one.

    0.16.1release notes

  • Fixes a missing check on unrecognized early bound.

    0.16.0release notes

  • Resolves local string literal bindings to avoid more false positives.

    0.16.0release notes

  • Supports the recommended API from newer versions of PySNMP.

    0.16.0release notes

  • Fixes a false positive involving a TypeVar default before Python 3.13.

    0.16.0release notes

ruff 0.15322 changes

Breaking changes 26

  • The pytest-fixture-autouse rule has been removed.

    0.15.20release notes

  • The parser now rejects _ as a match-pattern target.

    0.15.18release notes

  • The pydocstyle rule now prevents property docstrings from starting with verbs.

    0.15.18release notes

  • The parser now rejects __debug__ as a lambda parameter.

    0.15.18release notes

  • The flake8-pyi rule formerly named PYI033 is renamed to legacy-type-comment.

    0.15.18release notes

  • The parser now rejects multiple starred names in sequence patterns.

    0.15.18release notes

  • The parser now rejects parenthesized star imports.

    0.15.18release notes

  • The flake8-pyi rule now applies to Python files as well.

    0.15.18release notes

  • The parser now rejects starred comprehension targets.

    0.15.18release notes

  • The parser now rejects unparenthesized generator expressions in class bases.

    0.15.18release notes

  • The parser now rejects yield expressions after commas.

    0.15.18release notes

  • The rule no longer offers an autofix for np.in1d.

    0.15.17release notes

  • RUF019 now treats f-string interpolation as a potential side effect.

    0.15.10release notes

  • F507 now flags percent-format strings that have zero placeholders.

    0.15.9release notes

  • Starred expressions are disallowed as values of other starred expressions.

    0.15.9release notes

  • Naming conventions are now checked in match pattern bindings by N806, N815, and N816.

    0.15.6release notes

  • The rule now flags requests.request calls.

    0.15.6release notes

  • Explicit support for .qmd files was dropped; configure qmd as a markdown extension instead.

    0.15.3release notes

  • Preview now enables 412 default rules instead of the stable set of 59; users who prefer the old defaults can explicitly select E4, E7, E9, and F.

    0.15.2release notes

  • The rule now also checks string annotations.

    0.15.2release notes

  • Unlabeled Markdown code blocks are no longer formatted.

    0.15.1release notes

  • Ruff formats code according to the new 2026 style guide, changing formatting for lambdas, exception tuples, function-body blank lines, match captures, escaped quotes, and decorated classes in stubs.

    0.15.0release notes

  • The rule detects shadowed built-in names in additional contexts, including decorators, default arguments, and other attribute definitions.

    0.15.0release notes

  • The minimum supported Rust version is updated to 1.91.

    0.15.0release notes

  • Release binaries for the 64-bit big-endian PowerPC architecture are no longer included; users can still build Ruff manually for the platform.

    0.15.0release notes

  • The rule now applies to stub files on Python versions before 3.13.

    0.15.0release notes

New APIs and options 47

  • Adds a rule to replace noqa comments with ruff:ignore.

    0.15.22release notes

  • Adds a rule to use human-readable names in ruff:ignore comments.

    0.15.22release notes

  • Adds a rule to use human-readable names in configuration selectors.

    0.15.22release notes

  • Adds an option for adding ruff:ignore comments.

    0.15.21release notes

  • Adds --extend-exclude to ruff format.

    0.15.21release notes

  • Rule selectors can now use human-readable names.

    0.15.20release notes

  • Adds a rule that bans pytest autouse fixtures.

    0.15.17release notes

  • The command accepts rule names.

    0.15.17release notes

  • Implements the yield-in-context-manager-in-async-generator diagnostic, allowing Ruff to detect this pattern.

    0.15.16release notes

  • Adds the airflow-task-implicit-multiple-outputs rule.

    0.15.14release notes

  • Adds the incorrect-decorator-order rule.

    0.15.14release notes

  • Adds the fallible-context-manager rule.

    0.15.14release notes

  • Adds the too-many-try-statements rule.

    0.15.14release notes

  • A preview rule flags lazy imports that are eagerly evaluated.

    0.15.13release notes

  • Implements the Airflow task-branch-as-short-circuit rule.

    0.15.12release notes

  • Adds file-level suppressions using the #ruff:file-ignore directive.

    0.15.12release notes

  • Adds logical-line suppressions using the #ruff:ignore directive.

    0.15.12release notes

  • Implements the airflow-xcom-pull-in-template-string rule.

    0.15.11release notes

  • The server now supports custom file extensions.

    0.15.10release notes

  • Adds a formatter option to control quote style for nested strings.

    0.15.9release notes

  • Adds the preview rule unnecessary-if, which can be enabled to flag unnecessary if statements.

    0.15.8release notes

  • Adds the preview rule useless-finally.

    0.15.8release notes

  • Adds the preview rule f-string-percent-format, which warns when % is used on an f-string.

    0.15.8release notes

  • Adds a rule that flags Variable.get() calls outside of task execution context.

    0.15.6release notes

  • Adds a rule that flags runtime-varying values in DAG/task constructor arguments.

    0.15.6release notes

  • Implements the delattr-with-constant rule.

    0.15.6release notes

  • The rule supports the newline parameter for Python 3.13 and later.

    0.15.6release notes

  • Ruff adds support for parsing lazy imports.

    0.15.6release notes

  • Adds the os-path-commonprefix rule, which also has an unsafe fix.

    0.15.6release notes

  • Ruff adds support for star-unpacking of comprehensions (PEP 798).

    0.15.6release notes

  • Adds a rule to enforce lazy imports.

    0.15.6release notes

  • The rule can be used to ban lazy imports.

    0.15.6release notes

  • Added a rule to enforce docstring section ordering.

    0.15.3release notes

  • Added the ICN001 import-convention rule.

    0.15.3release notes

  • Added the ICN002 import-convention rule.

    0.15.3release notes

  • Implemented the swap-with-temporary-variable rule.

    0.15.3release notes

  • Added the unnecessary-assign-before-yield rule.

    0.15.3release notes

  • Configuration file options now support extension mapping.

    0.15.2release notes

  • Checks that subscripts in tuples do not use lambda parameters in reimplemented-operator.

    0.15.1release notes

  • Adds support for configurable import section heading comments.

    0.15.1release notes

  • Detects non-existent mock methods in standalone expressions.

    0.15.1release notes

  • Adds support for Quarto Markdown language markers.

    0.15.1release notes

  • Detects mutable defaults in field calls.

    0.15.1release notes

  • Adds the float-equality-comparison rule.

    0.15.1release notes

  • A new CLI option forces colored output.

    0.15.0release notes

  • The location of the fix_title sub-diagnostic can be customized.

    0.15.0release notes

  • The linter supports block suppression comments using ruff: disable and ruff: enable to suppress rules across a code block.

    0.15.0release notes

Performance 13

  • Reserves capacity for builtin bindings.

    0.15.19release notes

  • Optimizes formatter text width and indentation.

    0.15.19release notes

  • Source files are created lazily for lint diagnostics.

    0.15.19release notes

  • Uses ArrayVec for qualified name segments.

    0.15.19release notes

  • Avoids allocating when parsing single string literals.

    0.15.19release notes

  • Avoids reallocating singleton call arguments.

    0.15.19release notes

  • Skips repeated-key checks for singleton dictionaries.

    0.15.19release notes

  • Drops excess capacity from statement suites during parsing.

    0.15.16release notes

  • Avoids redundant TokenValue drops in the lexer.

    0.15.15release notes

  • Uses ThinVec in the AST to shrink Stmt.

    0.15.15release notes

  • Reduces memory usage by dropping token-excess capacity and improves performance by approximating the initial tokens Vec size.

    0.15.15release notes

  • Avoids unnecessary parser lookahead for operators.

    0.15.14release notes

  • Diagnostic rendering is faster.

    0.15.8release notes

Behavior and default changes 66

  • Allows subclassing builtins in stub files.

    0.15.22release notes

  • Drops the tuple-comprehension preview behavior for C409.

    0.15.21release notes

  • Formatting comments no longer normalizes whitespace.

    0.15.21release notes

  • Skips overload-with-docstring in stub files.

    0.15.21release notes

  • Marks PYI061 fixes as unsafe in Python files.

    0.15.21release notes

  • Unknown rule selectors now emit a warning instead of an error.

    0.15.20release notes

  • Diagnostic links in the playground are now clickable.

    0.15.18release notes

  • LSP and playground diagnostics now use human-readable names.

    0.15.18release notes

  • The server renders subdiagnostics and secondary annotations as related information.

    0.15.18release notes

  • Severity is no longer displayed in output.

    0.15.18release notes

  • Python version comparisons are exempt from this rule.

    0.15.17release notes

  • Suppression comments can use human-readable rule names.

    0.15.17release notes

  • Automatically adds from __future__ import annotations for this rule.

    0.15.17release notes

  • Avoids fixes for ambiguous argnames and argvalues combinations.

    0.15.16release notes

  • The maximum allowed value for the setting has increased.

    0.15.13release notes

  • Standardizes the diagnostic message for this pylint rule.

    0.15.13release notes

  • The pandas-vet PD011 rule now suggests .array as well.

    0.15.12release notes

  • LOG004 now allows closures in except handlers.

    0.15.10release notes

  • In preview mode, F811 flags annotated variable redeclarations.

    0.15.9release notes

  • In non-strict mode, RUF067 allows dunder-named assignments.

    0.15.9release notes

  • UP018 detects more literals that are unnecessarily wrapped.

    0.15.9release notes

  • The server warns when Markdown files are skipped because preview is disabled.

    0.15.8release notes

  • The rule treats sys.executable as trusted input.

    0.15.8release notes

  • The E501 rule recognizes pyrefly: as a pragma comment.

    0.15.7release notes

  • The rule now ignores pprint calls that use stream=.

    0.15.6release notes

  • A few rules are dropped from the preview default set, changing which rules run by default in preview.

    0.15.6release notes

  • Uses starred unpacking for this rule when targeting Python 3.15 or later.

    0.15.6release notes

  • Limits the rule to typing contexts and makes it unsafe outside typing-only contexts.

    0.15.6release notes

  • The rule automatically adds from __future__ import annotations.

    0.15.6release notes

  • In preview mode, Ruff discovers Markdown files by default.

    0.15.5release notes

  • The rule now applies to comprehensions and generators.

    0.15.5release notes

  • Certain B007 diagnostics are now tagged as unnecessary.

    0.15.3release notes

  • B901 is now allowed in pytest hook wrappers.

    0.15.3release notes

  • Configured extensions are now included in file discovery.

    0.15.3release notes

  • Sub-diagnostics are now rendered in the GitHub output format.

    0.15.3release notes

  • RUF100 now ignores unknown rule codes; RUF102 flags them instead.

    0.15.3release notes

  • RUF102 now supports file-level noqa directives.

    0.15.3release notes

  • Suspicious imports in TYPE_CHECKING blocks are now allowed for these rules.

    0.15.3release notes

  • The rule now allows global flags in uv shebangs.

    0.15.2release notes

  • The rule now detects chained str.split() calls.

    0.15.2release notes

  • Adds a secondary annotation showing the previous occurrence.

    0.15.1release notes

  • Uses extension mapping to select the language for Markdown code blocks.

    0.15.1release notes

  • Allows dunder submodules and improves the diagnostic range.

    0.15.1release notes

  • Adds a sub-diagnostic showing the runtime use of an annotation.

    0.15.1release notes

  • The blocking-http-call-httpx-in-async-function rule is no longer in preview.

    0.15.0release notes

  • The blocking-path-method-in-async-function rule is no longer in preview.

    0.15.0release notes

  • The blocking-input-in-async-function rule is no longer in preview.

    0.15.0release notes

  • The map-without-explicit-strict rule is no longer in preview.

    0.15.0release notes

  • The if-exp-instead-of-or-operator rule is no longer in preview.

    0.15.0release notes

  • The single-item-membership-test rule is no longer in preview.

    0.15.0release notes

  • Preview support applies formatting to code blocks in Markdown.

    0.15.0release notes

  • The server identifies notebooks using LSP didOpen rather than the .ipynb file extension.

    0.15.0release notes

  • The missing-maxsplit-arg rule is no longer in preview.

    0.15.0release notes

  • The unnecessary-lambda rule is no longer in preview.

    0.15.0release notes

  • The unnecessary-empty-iterable-within-deque-call rule is no longer in preview.

    0.15.0release notes

  • The in-empty-collection rule is no longer in preview.

    0.15.0release notes

  • The legacy-form-pytest-raises rule is no longer in preview.

    0.15.0release notes

  • The non-octal-permissions rule is no longer in preview.

    0.15.0release notes

  • The rule adds sub-diagnostics with permissions.

    0.15.0release notes

  • The invalid-rule-code rule is no longer in preview.

    0.15.0release notes

  • The invalid-suppression-comment rule is no longer in preview.

    0.15.0release notes

  • The unmatched-suppression-comment rule is no longer in preview.

    0.15.0release notes

  • The rule offers an autofix when maxsplit is provided, even if sep is omitted.

    0.15.0release notes

  • The rule now applies to more types of key expressions.

    0.15.0release notes

  • The fix is now unsafe if it deletes comments.

    0.15.0release notes

  • The replace-str-enum rule is no longer in preview.

    0.15.0release notes

Tooling 18

  • Adds an autofix for E402.

    0.15.22release notes

  • Adds linting and fixes for use of deprecated abc decorators.

    0.15.21release notes

  • Suppression comments and code actions support human-readable names when hovered.

    0.15.19release notes

  • The playground now uses diagnostic tags.

    0.15.18release notes

  • CLI output now uses human-readable names.

    0.15.17release notesrelease notes

  • Pytest style checks also cover pytest_asyncio fixtures.

    0.15.17release notes

  • Automatically adds from __future__ import annotations for this rule.

    0.15.17release notes

  • Adds full support for PEP 798.

    0.15.14release notes

  • The help text for --config now includes TOML examples.

    0.15.13release notes

  • Colorizes the “All checks passed” output.

    0.15.13release notes

  • Preview displays output severity.

    0.15.7release notes

  • The Python module was updated for parity with uv, notably find_ruff_bin.

    0.15.3release notes

  • Flags a third positional parameter not named ti_key in BaseOperatorLink.get_link.

    0.15.1release notes

  • Adds a rule to catch deprecated Airflow imports for Airflow 3.1.

    0.15.1release notes

  • Adds Markdown formatting support in the LSP.

    0.15.1release notes

  • Adds formatting support for pycon Markdown code blocks.

    0.15.1release notes

  • The rule adds a sub-diagnostic explaining why a fix was unavailable.

    0.15.0release notes

  • The Docker image is now based on Debian 13 Trixie instead of Debian 12 Bookworm.

    0.15.0release notes

Fixes and other changes 152

  • Ignores mutable type updates in redefined-loop-name.

    0.15.22release notes

  • Fixes a false positive in __all__.

    0.15.22release notes

  • Marks the EXE004 fix as unsafe.

    0.15.21release notes

  • Refines detection of non-empty f-strings.

    0.15.21release notes

  • Fixes an autofix that incorrectly stripped + from comments.

    0.15.21release notes

  • Detects syntax errors in individual notebook cells.

    0.15.21release notes

  • Shebang handling in ruff:ignore comments now matches noqa shebang handling.

    0.15.20release notes

  • Ruff falls back to default settings when editor-only settings are invalid.

    0.15.19release notes

  • Fixes a panic when inserting text at a notebook cell boundary.

    0.15.19release notes

  • Updates fix suggestions for __floor__, __trunc__, __length_hint__, and __matmul__ variants.

    0.15.19release notes

  • Ruff crates are published to crates.io.

    0.15.19release notes

  • Ruff now detects mapping keys that are equivalent numeric values.

    0.15.18release notes

  • The parser now validates the default order of function type parameters.

    0.15.18release notes

  • Ruff now detects mapping keys equivalent to booleans.

    0.15.18release notes

  • Ruff now handles nested ruff:ignore comments.

    0.15.18release notes

  • Ruff now detects repeated signed and complex dictionary keys.

    0.15.18release notes

  • trio.as_safe_channel is recognized as a safe decorator.

    0.15.17release notes

  • Clarifies the diagnostic message for single parameters.

    0.15.17release notes

  • The formatter preserves whitespace for Quarto cell option comments.

    0.15.17release notes

  • Fixes diagnostics when ruff:enable or ruff:disable appears where ruff:ignore is expected.

    0.15.17release notes

  • Suppressions respect diagnostic start and parent ranges, as well as trailing comments.

    0.15.17release notes

  • Handling of ignore comments within a disable/enable pair is fixed.

    0.15.17release notes

  • Preserves leading empty literals to avoid syntax errors.

    0.15.17release notes

  • No longer flags ruff:ignore comments as code.

    0.15.16release notes

  • Fixes a conflict with RUF100 when noqa is on commented-out code.

    0.15.16release notes

  • Avoids removing a format call when doing so would change behavior.

    0.15.16release notes

  • Avoids syntax errors from invalid character replacements in f-strings before Python 3.12; the fix also covers PLE2512, PLE2513, PLE2514, and PLE2515.

    0.15.16release notes

  • Narrows the diagnostic range and excludes cases without exception handlers.

    0.15.16release notes

  • Treats yield before break from a terminal loop as terminal.

    0.15.16release notes

  • Avoids converting format calls with more kinds of side effects.

    0.15.16release notes

  • Returns a code action for resolve requests that contain no URL or no valid URL.

    0.15.15release notes

  • Reports duplicate imports in typing.TYPE_CHECKING blocks.

    0.15.15release notes

  • Treats function-scope bare annotations as locals, per PEP 526.

    0.15.15release notes

  • Fixes formatting of lambdas nested within f-strings.

    0.15.15release notes

  • Fixes how Ruff handles closing fences in Markdown.

    0.15.15release notes

  • Expands semantic syntax errors reported for invalid walruses.

    0.15.15release notes

  • Skips the rule for lambdas with positional-only parameters.

    0.15.14release notes

  • Treats generic frozenset annotations as immutable.

    0.15.14release notes

  • Fixes lambda formatting in interpolated string expressions.

    0.15.14release notes

  • Adds a recursion limit to the parser.

    0.15.14release notes

  • Avoids false positives in else clauses.

    0.15.14release notes

  • Marks the fix as unsafe when the first argument is a class attribute annotated as int.

    0.15.14release notes

  • Preserves f-string source verbatim in the fix.

    0.15.14release notes

  • Avoids strict behavior when future annotations are enabled.

    0.15.14release notes

  • Fixes a false positive for lines with leading whitespace.

    0.15.13release notes

  • Fixes a false positive for class methods.

    0.15.13release notes

  • Improves the error message for parameters declared global.

    0.15.13release notes

  • Updates Ruff's known standard-library information.

    0.15.13release notes

  • Fixes setting selection for multi-folder workspaces.

    0.15.13release notes

  • Panic diagnostic messages now always include the panic payload.

    0.15.13release notes

  • Fixes a false positive for f-string debug specifiers.

    0.15.13release notes

  • Restricts in-place operation checks to the enclosing class.

    0.15.13release notes

  • Fixes break and continue handling in loop-iterator-mutation.

    0.15.12release notes

  • Cache files now respect default Unix permissions.

    0.15.12release notes

  • Reverts preview changes to the displayed diagnostic severity in LSP.

    0.15.12release notes

  • Fixes PLC2701 behavior for type parameter scopes.

    0.15.12release notes

  • Overridden methods are omitted from ASYNC109 analysis.

    0.15.11release notes

  • RUF029 is ignored when a function is decorated with asynccontextmanager.

    0.15.11release notes

  • Fixes false positives and negatives in mask analysis.

    0.15.11release notes

  • E502 fixes no longer cause syntax errors in f-strings and t-strings.

    0.15.10release notes

  • Ruff avoids emitting or accepting multi-line f-string elements before Python 3.12.

    0.15.10release notes

  • The collapsible-if fix is safe in preview.

    0.15.10release notes

  • SLF diagnostics are robust to variables that are not named self.

    0.15.10release notes

  • Fixes a panic when UP012 handles octals.

    0.15.10release notes

  • The EM101 fix avoids shadowing an existing msg variable.

    0.15.9release notes

  • RUF010 fixes are marked unsafe when they delete a comment.

    0.15.9release notes

  • The RUF024 fix no longer reuses an existing symbol.

    0.15.9release notes

  • The RUF050 fix now parenthesizes the expression.

    0.15.9release notes

  • RUF072 now skips formfeeds when processing dedentation.

    0.15.9release notes

  • SIM105 is suppressed for except* before Python 3.12.

    0.15.9release notes

  • SIM113 ignores references made before initialization.

    0.15.9release notes

  • UP008 callable-scope handling now supports lambdas.

    0.15.9release notes

  • UP012 now ignores strings that contain string-only escapes.

    0.15.9release notes

  • W391 fixes now handle consecutive empty notebook cells correctly.

    0.15.9release notes

  • Resolves string imports that reference attributes as well as those referencing modules.

    0.15.8release notes

  • The autofix uses the fully qualified anyio.lowlevel import.

    0.15.8release notes

  • Line-width calculations for E501, W505, and the formatter exclude nested pragma comments.

    0.15.8release notes

  • The rule ignores ty: ignore comments.

    0.15.8release notes

  • Fixes a false negative for non-tuple right-hand sides in percent formatting.

    0.15.8release notes

  • The undefined-name rule skips variables that were conditionally deleted.

    0.15.8release notes

  • Pyflakes recognizes frozendict as a builtin when targeting Python 3.15 or later.

    0.15.8release notes

  • The fixer parenthesizes generator arguments.

    0.15.8release notes

  • Fixes parsing of %foo? in IPython assignment expressions.

    0.15.8release notes

  • The rule now checks tuple arguments for partial paths.

    0.15.8release notes

  • The rule recognizes Self annotations and self assignments.

    0.15.8release notes

  • The server no longer returns code actions for non-Python documents.

    0.15.7release notes

  • Ruff no longer shows noqa hover information for non-Python documents.

    0.15.7release notes

  • Fixes unwanted leading whitespace created by --add-noqa.

    0.15.6release notes

  • Fixes --add-noqa breaking shebangs.

    0.15.6release notes

  • Fixes a stack overflow on quoted annotations with escape sequences.

    0.15.6release notes

  • The formatter preserves required annotation parentheses.

    0.15.6release notes

  • Import sorting now retains the lazy keyword.

    0.15.6release notes

  • Fixes lambda body formatting for multiline calls and subscripts.

    0.15.6release notes

  • Ruff rejects semantic syntax errors in lazy imports.

    0.15.6release notes

  • Fixes comment duplication in fixes for PERF401 and PERF403.

    0.15.6release notes

  • Fixes that previously caused syntax errors are avoided.

    0.15.6release notes

  • Adds an unsafe fix for os-path-commonprefix.

    0.15.6release notes

  • The formatter preserves parentheses in type expressions.

    0.15.6release notes

  • UP008 matching now handles nested classes correctly.

    0.15.6release notesrelease notes

  • Fixes WSL detection in non-Docker containers.

    0.15.6release notes

  • Fixes numpy section ordering.

    0.15.5release notes

  • Fixes a false positive for names shadowing re-exports.

    0.15.5release notes

  • Handles callable class dependencies that have a __call__ method.

    0.15.5release notes

  • Fixes false positives when an I/O variable is used later.

    0.15.5release notes

  • Adds a fix for none-not-at-end-of-union.

    0.15.5release notes

  • Fixes a false positive for re.split with an empty string pattern.

    0.15.5release notes

  • Avoids inserting redundant None elements.

    0.15.5release notes

  • Suppresses a false positive for names used before del in stub files.

    0.15.4release notes

  • Fixes a panic when PLR1712 is enabled alongside rules that analyze definitions, such as many ANN or D rules.

    0.15.4release notes

  • Fixed a false positive for @overload from lint.typing-modules.

    0.15.3release notes

  • Fixed an infinite loop between I002 and PYI025.

    0.15.3release notes

  • Invalid f-strings before Python 3.12 no longer produce this diagnostic.

    0.15.3release notes

  • BaseLoader and CBaseLoader are no longer flagged as unsafe.

    0.15.3release notes

  • Fixed handling of \N in raw strings.

    0.15.3release notes

  • Fixed a false positive for TypeVar defaults before Python 3.12.

    0.15.3release notes

  • Fixes a false positive for immediately-invoked lambdas.

    0.15.2release notes

  • The in_async_context logic is fixed, which may change flake8-async diagnostics.

    0.15.2release notes

  • Fixes parser indentation tracking after line continuations.

    0.15.2release notes

  • The parser no longer reports a false syntax error for match-like annotated assignments.

    0.15.2release notes

  • The CLI no longer emits the invalid inline noqa warning.

    0.15.2release notes

  • Suppresses diagnostics for strings with backslashes in interpolations when targeting Python versions before 3.12.

    0.15.2release notes

  • Fixes now delete the entire comment.

    0.15.2release notes

  • Fixes rule handling of typing.{io,re}.

    0.15.2release notes

  • Catches deprecated attribute access from context keys for Airflow 3.0.

    0.15.1release notes

  • Captures deprecated arguments and a decorator.

    0.15.1release notes

  • Fixes parenthesis removal for exception handlers on Python 3.14 and later.

    0.15.1release notes

  • Fixes an infinite loop in the preview fix for unused imports.

    0.15.1release notes

  • Avoids a false positive for undefined variables.

    0.15.1release notes

  • Prevents the autofix from introducing syntax errors.

    0.15.1release notes

  • Excludes multiprocessing.Value from the functions checked by the rule.

    0.15.1release notes

  • Uses ruff instead of Ruff as the program name in GitHub output.

    0.15.1release notes

  • No longer suggests InitVar for __post_init__ that references PEP 695 type parameters.

    0.15.1release notes

  • Fixes false negatives for the plural argument of ngettext.

    0.15.1release notes

  • Fixes missing diagnostics for the last range suppression in a file.

    0.15.1release notes

  • Improves the diagnostic for the rule.

    0.15.1release notes

  • Wraps the target for multiline fixes.

    0.15.1release notes

  • Ignores the standard-library cmath.inf.

    0.15.1release notes

  • Suppresses diagnostic output when formatting with --check --silent.

    0.15.1release notes

  • Fixes an f-string middle panic when parsing t-strings.

    0.15.1release notes

  • Deduplicates type variables in generic functions.

    0.15.1release notes

  • Wraps the target for multiline fixes.

    0.15.1release notes

  • Improves the diagnostic range for tuples.

    0.15.1release notes

  • Fixes a syntax error on strings with a newline escape and comment.

    0.15.1release notes

  • The rule no longer suggests NoReturn for functions that raise NotImplementedError.

    0.15.0release notes

  • Ruff resolves all extended configuration files before falling back on a default Python version.

    0.15.0release notes

  • The rule no longer adds abc.ABC if it is already present.

    0.15.0release notes

  • The rule now considers typing.Optional when searching for duplicate union members.

    0.15.0release notes

  • The Docker image is now based on Alpine 3.23 instead of 3.21.

    0.15.0release notes

  • Suppression indentation matching is fixed.

    0.15.0release notes

  • The rule now provides a safe fix when applying it will not delete comments.

    0.15.0release notes

  • The fix is now unsafe if it deletes comments.

    0.15.0release notes

  • The fix is now unsafe if it deletes comments.

    0.15.0release notes

ruff 0.14141 changes

Breaking changes 4

  • WASM now requires explicit logging initialization.

    0.14.13release notes

  • Invalid or unmatched range suppression comments now produce diagnostics.

    0.14.11release notes

  • Adds a syntax error for an annotated name that is global.

    0.14.10release notes

  • ERA001 now ignores ruff:disable and ruff:enable comments.

    0.14.10release notes

Security 1

  • Handles string literal bindings in suspicious-url-open-usage.

    0.14.7release notes

Deprecations 3

  • Extends the rule's deprecated-argument coverage to concurrency in airflow..DAG.

    0.14.4release notes

  • Warns that airflow....DAG.create_dagrun has been removed.

    0.14.3release notes

  • Adds a warning for use of airflow.datasets.DatasetEvent.

    0.14.1release notes

New APIs and options 13

  • Adds a preview diagnostic for dictionary values used as the second positional argument to Airflow Asset or Dataset.

    0.14.14release notes

  • PT011 supports the check parameter.

    0.14.14release notes

  • Adds a preview diagnostic that detects duplicate entries in __all__.

    0.14.14release notes

  • Adds the non-empty-init-module rule.

    0.14.11release notes

  • Adds a rule to prevent implicit string concatenation in collections.

    0.14.10release notes

  • Adds a pylint diagnostic that detects subclasses of builtin exceptions.

    0.14.9release notes

  • Adds diagnostics for unused range suppressions, allowing Ruff to identify suppressions that no longer silence any violations.

    0.14.9release notes

  • Adds a preview rule that catches yield expressions within other statements.

    0.14.8release notes

  • Adds a rule to detect unnecessary class properties.

    0.14.7release notes

  • Adds an option to skip over imports in TYPE_CHECKING blocks.

    0.14.6release notes

  • You can now provide a reason when using --add-noqa.

    0.14.5release notes

  • Implements the stop-iteration-return rule.

    0.14.3release notes

  • Adds the docstring-extraneous-parameter rule.

    0.14.1release notes

Performance 2

Behavior and default changes 32

  • Diagnostics for range suppression codes are combined.

    0.14.14release notes

  • Allows more logging methods for BLE001, changing which exception-catching cases the rule accepts.

    0.14.13release notes

  • Updates the Rust crate imperative used by D401 to v1.0.7, potentially changing rule results.

    0.14.13release notes

  • Import insertion for I002 now follows alphabetical order.

    0.14.13release notes

  • Diagnostics for matched disable/enable suppression comments are consolidated.

    0.14.11release notes

  • Improves the diagnostic range.

    0.14.11release notes

  • Identical members are now ignored.

    0.14.11release notes

  • Its fix is now display-only rather than automatically applicable.

    0.14.11release notes

  • Python 3.15 is accepted as a target-version value in preview.

    0.14.11release notes

  • The formatter keeps lambda parameters on one line and parenthesizes the body if it expands.

    0.14.10release notes

  • The formatter now formats method chains fluently.

    0.14.10release notes

  • Allows match and check keyword arguments without an expected exception type.

    0.14.10release notes

  • Suppresses this diagnostic for parameters with Unpack annotations.

    0.14.9release notes

  • Catches more dummy variable uses.

    0.14.7release notes

  • The preview rule now supports NumPy-style comma-separated parameters.

    0.14.5release notes

  • The preview rule now auto-fixes annotated assignments.

    0.14.5release notes

  • The rule now detects empty f-strings.

    0.14.5release notes

  • Help output now includes color.

    0.14.5release notes

  • The preview rule ignores str() when it is not used for simple conversion.

    0.14.5release notes

  • JSON output now includes the upstream linter URL.

    0.14.5release notes

  • The preview rule now applies when the index variable is of type int.

    0.14.5release notes

  • Autofix safety is expanded for keyword arguments and Decimals.

    0.14.4release notes

  • The formatter avoids adding extra parentheses around long match patterns with as captures.

    0.14.4release notes

  • The formatter now allows newlines after function headers even when the function has no docstring.

    0.14.4release notes

  • The graph command now works with Jupyter notebooks.

    0.14.4release notes

  • Extends the check for airflow.models..Param.

    0.14.3release notes

  • Adds support for additional eager conversion patterns.

    0.14.3release notes

  • More pyflakes and pandas rules use DiagnosticTag.

    0.14.2release notes

  • Autofixes for this rule are now marked unsafe.

    0.14.1release notes

  • More rules use DiagnosticTag, changing how diagnostics display in editors.

    0.14.1release notes

  • On Python 3.14 and later, the formatter removes parentheses around multiple exception types.

    0.14.1release notes

  • Recognizes typing_extensions.Text in addition to typing.Text.

    0.14.1release notesrelease notes

Tooling 7

  • Flags passing a positional argument to HookLineageCollector.create_asset, which is not allowed.

    0.14.11release notes

  • Several Ruff rules now provide help subdiagnostics when their diagnostics can appear to disagree with ty.

    0.14.11release notes

  • Extends Path.open support for FURB101 and FURB103.

    0.14.10release notes

  • Shows a partial fixability indicator in statistics output.

    0.14.7release notes

  • Lint errors are now rendered with hyperlinks.

    0.14.6release notes

  • The flake8-bandit rules S508 and S509 support new PySNMP API paths.

    0.14.6release notes

  • The command's JSON output is improved.

    0.14.2release notes

Fixes and other changes 79

  • Fixes for B009, B010, B013, B014, B033, SIM910, SIM911, UP007, UP039, UP041, UP045, FURB105, FURB116, FURB136, FURB140, FURB145, FURB154, FURB157, FURB164, FURB181, FURB188, RUF019, and RUF020 are marked unsafe when they would remove comments.

    0.14.14release notes

  • The formatter preserves required parentheses in lambda bodies.

    0.14.14release notes

  • PIE794 now detects duplicated declared class fields.

    0.14.14release notes

  • Fixes inconsistent forward-reference handling for __new__, __enter__, and __aenter__.

    0.14.14release notes

  • RUF012 now exempts ctypes.Structure._fields_.

    0.14.14release notes

  • Corrects UP029 handling so non-builtin bindings can be shadowed.

    0.14.14release notes

  • UP045 now applies to string arguments of typing.cast.

    0.14.14release notes

  • RUF066 now respects lint.pydocstyle.property-decorators when evaluating properties.

    0.14.13release notes

  • Fixes the configuration path shown by this option.

    0.14.13release notes

  • Treats **kwargs in a TypeVar as used.

    0.14.11release notes

  • Its fix is now always marked unsafe.

    0.14.11release notes

  • Fixes GitHub formatting for multi-line diagnostics.

    0.14.11release notes

  • Ruff checks required-version before parsing rules.

    0.14.11release notes

  • Improves the fix title shown for an invalid rule code.

    0.14.11release notes

  • Avoids adding an unnecessary builtins import in its fix.

    0.14.11release notes

  • Configured src directories are now included when resolving graphs.

    0.14.11release notes

  • Fixes are unsafe when types change in compound statements; this also applies to PTH105, PTH109, and PTH115.

    0.14.10release notes

  • Fixes parsing of named Unicode escape sequences.

    0.14.10release notes

  • Accepts immutable slice default arguments.

    0.14.9release notes

  • Fixes comment placement in lambda parameters.

    0.14.9release notes

  • Fixes a false positive when using a non-standard CSafeLoader path.

    0.14.9release notes

  • Marks fixes unsafe when they could change return types.

    0.14.8release notes

  • Fixes truthiness assumptions for non-iterable arguments in tuple, list, and set calls.

    0.14.8release notes

  • Changes handling of a default type parameter followed by a non-default type parameter.

    0.14.8release notes

  • Fixes false-positive syntax errors for await expressions outside functions.

    0.14.8release notes

  • Fixes a panic when parsing IPython escape command expressions.

    0.14.7release notes

  • Avoids producing an invalid fix.

    0.14.7release notes

  • Sets severity for non-rule diagnostics.

    0.14.7release notes

  • Fixes suppression for an empty dict without a tuple key annotation.

    0.14.7release notes

  • Fixes false positives on nested functions.

    0.14.7release notes

  • Formatting these expressions no longer causes a syntax error when the value is parenthesized and has a trailing comment.

    0.14.6release notes

  • The formatter no longer panics when formatting comments in unary expressions.

    0.14.6release notes

  • The formatter now respects fmt: skip when multiple statements appear on the same logical line.

    0.14.6release notesrelease notes

  • Fixes the rule's autofix.

    0.14.6release notes

  • The formatter adjusts own-line comment placement between branches.

    0.14.6release notes

  • Avoids a false positive on ClassVar reassignment.

    0.14.6release notes

  • Fixes a false positive for complex conversion specifiers in logging-eager-conversion.

    0.14.6release notes

  • Fixes a syntax error false positive on alternative match patterns.

    0.14.5release notes

  • Fixes a false positive when Sphinx directives follow a Raises section.

    0.14.5release notes

  • The error message is improved when line-length exceeds u16::MAX.

    0.14.5release notes

  • Fixes a false positive for iterable initializers with generator arguments.

    0.14.5release notes

  • Fixes a false positive on relative imports from a local .builtins module.

    0.14.5release notes

  • The deprecated tag is now set consistently.

    0.14.5release notes

  • These rules now ignore attribute names that are not NFKC-normalized.

    0.14.4release notes

  • The autofix now preserves argument ordering.

    0.14.4release notes

  • Fixes a false negative for underscores before a sign in a Decimal constructor.

    0.14.4release notes

  • Fixes missing diagnostics for notebooks in the server.

    0.14.4release notes

  • Fixes false positives on starred arguments.

    0.14.4release notes

  • Fixes keyword range detection for a clause header after a statement ending with a semicolon.

    0.14.3release notes

  • Applies the rule to annotated fields.

    0.14.3release notes

  • Fixes a false positive on explicit exception re-raising.

    0.14.3release notes

  • Restores stable behavior when imports for a module lie in alternate branches.

    0.14.3release notes

  • Fixes a false positive for __class__ in lambda expressions within class definitions.

    0.14.3release notes

  • Preserves digit separators in Decimal constructors.

    0.14.3release notes

  • Fixes a panic when string literals are unclosed.

    0.14.3release notes

  • Provides a clearer error message when line-length goes beyond the threshold.

    0.14.3release notes

  • Fixes a syntax error false positive on nested alternative patterns.

    0.14.3release notes

  • Adds missing docstring sections to the numpy list.

    0.14.3release notes

  • The flag is respected in watch mode, where the full output format is now used by default to match regular CLI output.

    0.14.3release notesrelease notes

  • Prevents the rule from triggering on metaclasses.

    0.14.3release notes

  • Fixes a false positive with future annotations.

    0.14.3release notes

  • Fixes a false positive for TypeVar with a default on Python versions below 3.13.

    0.14.3release notes

  • These rules are skipped when there are fewer than two iterables and no starred arguments.

    0.14.2release notes

  • The FAST002 autofix now handles ellipsis defaults.

    0.14.2release notes

  • The autofix is skipped for keyword and __debug__ path parameters.

    0.14.2release notes

  • The preview rules INT001, INT002, and INT003 now resolve qualified names and built-in bindings.

    0.14.2release notes

  • Ruff avoids reusing nested, interpolated quotes before Python 3.12.

    0.14.2release notes

  • Ruff catches syntax errors in nested interpolations before Python 3.12.

    0.14.2release notes

  • SIM911 is skipped when unknown arguments are present.

    0.14.2release notes

  • The preview autofix no longer omits an annotation.

    0.14.1release notes

  • Improves recovery for unclosed strings, including f-strings and t-strings.

    0.14.1release notes

  • Fixes false-positive syntax errors involving escapes and quotes in f-strings.

    0.14.1release notes

  • Fixes false positives for path parameters that FastAPI does not recognize.

    0.14.1release notes

  • The fix avoids dropping pieces that are implicitly concatenated.

    0.14.1release notes

  • Fixes false-positive syntax errors on parenthesized context managers.

    0.14.1release notes

  • The fix adds parentheses when needed to preserve operator precedence.

    0.14.1release notes

  • Suppresses diagnostics for f-string interpolations with debug text.

    0.14.1release notes

  • Fixes false negatives for lambdas, generators, and f-strings.

    0.14.1release notes

  • Fixes a false negative for TypeVar with a default argument in non-pep695-generic-class.

    0.14.1release notes

ruff 0.01 changes

New APIs and options 1

  • Adds a flake8-annotations-derived rule for missing return types on public functions; fixes are sometimes available.

    0.0.105docs