mirror of
https://github.com/astral-sh/ruff.git
synced 2026-12-04 02:03:58 +08:00
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [ruff](https://docs.astral.sh/ruff) ([source](https://redirect.github.com/astral-sh/ruff), [changelog](https://redirect.github.com/astral-sh/ruff/blob/main/CHANGELOG.md)) | `==0.15.12` → `==0.15.13` |  |  | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.15.13`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01513) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.12...0.15.13) Released on 2026-05-14. ##### Preview features - Add a rule to flag lazy imports that are eagerly evaluated ([#​25016](https://redirect.github.com/astral-sh/ruff/pull/25016)) - \[`pylint`] Standardize diagnostic message (`PLR0914`, `PLR0917`) ([#​24996](https://redirect.github.com/astral-sh/ruff/pull/24996)) ##### Bug fixes - Fix `F811` false positive for class methods ([#​24933](https://redirect.github.com/astral-sh/ruff/pull/24933)) - Fix setting selection for multi-folder workspace ([#​24819](https://redirect.github.com/astral-sh/ruff/pull/24819)) - \[`eradicate`] Fix false positive for lines with leading whitespace (`ERA001`) ([#​25122](https://redirect.github.com/astral-sh/ruff/pull/25122)) - \[`flake8-pyi`] Fix false positive for f-string debug specifier (`PYI016`) ([#​24098](https://redirect.github.com/astral-sh/ruff/pull/24098)) ##### Rule changes - Always include panic payload in panic diagnostic message ([#​24873](https://redirect.github.com/astral-sh/ruff/pull/24873)) - Restrict `PYI034` for in-place operations to enclosing class ([#​24511](https://redirect.github.com/astral-sh/ruff/pull/24511)) - Improve error message for parameters that are declared `global` ([#​24902](https://redirect.github.com/astral-sh/ruff/pull/24902)) - Update known stdlib ([#​25103](https://redirect.github.com/astral-sh/ruff/pull/25103)) ##### Performance - \[`isort`] Avoid constructing `glob::Pattern`s for literal known modules ([#​25123](https://redirect.github.com/astral-sh/ruff/pull/25123)) ##### CLI - Add TOML examples to `--config` help text ([#​25013](https://redirect.github.com/astral-sh/ruff/pull/25013)) - Colorize ruff check 'All checks passed' ([#​25085](https://redirect.github.com/astral-sh/ruff/pull/25085)) ##### Configuration - Increase max allowed value of `line-length` setting ([#​24962](https://redirect.github.com/astral-sh/ruff/pull/24962)) ##### Documentation - Add `D203` to rules that conflict with the formatter ([#​25044](https://redirect.github.com/astral-sh/ruff/pull/25044)) - Clarify `COM819` and formatter interaction ([#​25045](https://redirect.github.com/astral-sh/ruff/pull/25045)) - Clarify that `NotImplemented` is a value, not an exception (`F901`) ([#​25054](https://redirect.github.com/astral-sh/ruff/pull/25054)) - Update number of lint rules supported ([#​24942](https://redirect.github.com/astral-sh/ruff/pull/24942)) ##### Other changes - Simplify the playground's markdown template ([#​24924](https://redirect.github.com/astral-sh/ruff/pull/24924)) ##### Contributors - [@​MichaReiser](https://redirect.github.com/MichaReiser) - [@​brian-c11](https://redirect.github.com/brian-c11) - [@​Andrej730](https://redirect.github.com/Andrej730) - [@​denyszhak](https://redirect.github.com/denyszhak) - [@​darestack](https://redirect.github.com/darestack) - [@​sharkdp](https://redirect.github.com/sharkdp) - [@​charliermarsh](https://redirect.github.com/charliermarsh) - [@​EkriirkE](https://redirect.github.com/EkriirkE) - [@​eyupcanakman](https://redirect.github.com/eyupcanakman) - [@​Hrk84ya](https://redirect.github.com/Hrk84ya) - [@​thernstig](https://redirect.github.com/thernstig) - [@​ntBre](https://redirect.github.com/ntBre) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 4am on Wednesday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/astral-sh/ruff). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xODUuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE4NS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>