Skip to content

Commit d1f544c

Browse files
authored
chore(deps): update dependency ruff to v0.15.21 (#549)
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.16` → `==0.15.21` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.15.21?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.15.16/0.15.21?slim=true) | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.15.21`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01521) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.20...0.15.21) Released on 2026-07-09. ##### Preview features - Add `--add-ignore` for adding `ruff:ignore` comments ([#&#8203;26346](https://redirect.github.com/astral-sh/ruff/pull/26346)) - \[`flake8-comprehensions`] Drop `C409` tuple comprehension preview behavior ([#&#8203;25707](https://redirect.github.com/astral-sh/ruff/pull/25707)) - Avoid whitespace normalization when formatting comments ([#&#8203;26455](https://redirect.github.com/astral-sh/ruff/pull/26455)) - \[`pyupgrade`] Lint and fix use of deprecated `abc` decorators (`UP051`) ([#&#8203;26417](https://redirect.github.com/astral-sh/ruff/pull/26417)) ##### Bug fixes - Refine non-empty f-string detection ([#&#8203;26526](https://redirect.github.com/astral-sh/ruff/pull/26526)) - Detect syntax errors in individual notebook cells ([#&#8203;26419](https://redirect.github.com/astral-sh/ruff/pull/26419)) - \[`flake8-implicit-str-concat`] Fix `ISC003` autofix incorrectly stripping `+` from comments ([#&#8203;26554](https://redirect.github.com/astral-sh/ruff/pull/26554)) ##### Rule changes - \[`flake8-executable`] Mark `EXE004` fix as unsafe ([#&#8203;26033](https://redirect.github.com/astral-sh/ruff/pull/26033)) - \[`flake8-pyi`] Mark `PYI061` fixes as unsafe in Python files ([#&#8203;26533](https://redirect.github.com/astral-sh/ruff/pull/26533)) - \[`pydocstyle`] Skip `overload-with-docstring` in stub files (`D418`) ([#&#8203;26318](https://redirect.github.com/astral-sh/ruff/pull/26318)) ##### Performance - Avoid per-token source index visitor calls ([#&#8203;26506](https://redirect.github.com/astral-sh/ruff/pull/26506)) - Cache parenthesized expression boundaries in the formatter ([#&#8203;26344](https://redirect.github.com/astral-sh/ruff/pull/26344)) - Improve performance of rendering edits in preview mode ([#&#8203;26565](https://redirect.github.com/astral-sh/ruff/pull/26565)) - Inline `fits_element` in formatter ([#&#8203;26429](https://redirect.github.com/astral-sh/ruff/pull/26429)) - Inline formatter printing hot paths ([#&#8203;26504](https://redirect.github.com/astral-sh/ruff/pull/26504)) - Lazily create builtin bindings ([#&#8203;26510](https://redirect.github.com/astral-sh/ruff/pull/26510)) - Skip empty trivia scans in the source indexer ([#&#8203;26507](https://redirect.github.com/astral-sh/ruff/pull/26507)) - Use ICF for macOS release builds ([#&#8203;25780](https://redirect.github.com/astral-sh/ruff/pull/25780)) ##### Formatter - Add `--extend-exclude` to `ruff format` ([#&#8203;26372](https://redirect.github.com/astral-sh/ruff/pull/26372)) ##### Documentation - Add "How does Ruff's import sorting compare to isort?" link to README ([#&#8203;26530](https://redirect.github.com/astral-sh/ruff/pull/26530)) - Fix Mozilla Firefox repository link in README ([#&#8203;26537](https://redirect.github.com/astral-sh/ruff/pull/26537)) - \[`flake8-bandit`] Fix misleading docstring for `mako-templates` (`S702`) ([#&#8203;26432](https://redirect.github.com/astral-sh/ruff/pull/26432)) - \[`ruff`] Fix non-triggering example for `if-key-in-dict-del` (`RUF051`) ([#&#8203;26433](https://redirect.github.com/astral-sh/ruff/pull/26433)) ##### Contributors - [@&#8203;EkriirkE](https://redirect.github.com/EkriirkE) - [@&#8203;tingerrr](https://redirect.github.com/tingerrr) - [@&#8203;s-rigaud](https://redirect.github.com/s-rigaud) - [@&#8203;nikolauspschuetz](https://redirect.github.com/nikolauspschuetz) - [@&#8203;Avasam](https://redirect.github.com/Avasam) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;omar-y-abdi](https://redirect.github.com/omar-y-abdi) - [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood) - [@&#8203;sylvestre](https://redirect.github.com/sylvestre) - [@&#8203;shaanmajid](https://redirect.github.com/shaanmajid) - [@&#8203;lerebear](https://redirect.github.com/lerebear) - [@&#8203;baltasarblanco](https://redirect.github.com/baltasarblanco) - [@&#8203;Sanjays2402](https://redirect.github.com/Sanjays2402) - [@&#8203;ZedThree](https://redirect.github.com/ZedThree) - [@&#8203;servusdei2018](https://redirect.github.com/servusdei2018) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) - [@&#8203;jesco-absolute](https://redirect.github.com/jesco-absolut) - [@&#8203;velikodniy](https://redirect.github.com/velikodniy) - [@&#8203;zaniebot](https://redirect.github.com/zaniebot) - [@&#8203;epage](https://redirect.github.com/epage) ### [`v0.15.20`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01520) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.19...0.15.20) Released on 2026-06-25. ##### Preview features - Allow human-readable names in rule selectors ([#&#8203;25887](https://redirect.github.com/astral-sh/ruff/pull/25887)) - Emit a warning instead of an error for unknown rule selectors ([#&#8203;26113](https://redirect.github.com/astral-sh/ruff/pull/26113)) - Match `noqa` shebang handling in `ruff:ignore` comments ([#&#8203;26286](https://redirect.github.com/astral-sh/ruff/pull/26286)) - \[`ruff`] Remove `pytest-fixture-autouse` (`RUF076`) ([#&#8203;26240](https://redirect.github.com/astral-sh/ruff/pull/26240), [#&#8203;26371](https://redirect.github.com/astral-sh/ruff/pull/26371)) ##### Documentation - Add versioning sections to custom crate READMEs ([#&#8203;26317](https://redirect.github.com/astral-sh/ruff/pull/26317)) - Update `ruff_python_parser` README for crates.io ([#&#8203;26315](https://redirect.github.com/astral-sh/ruff/pull/26315)) - \[`perflint`] Clarify that `PERF402` applies to any iterable ([#&#8203;26242](https://redirect.github.com/astral-sh/ruff/pull/26242)) ##### Contributors - [@&#8203;dhruvmanila](https://redirect.github.com/dhruvmanila) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;trilamsr](https://redirect.github.com/trilamsr) ### [`v0.15.19`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01519) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.18...0.15.19) Released on 2026-06-23. ##### Preview features - Support human-readable names when hovering suppression comments and in code actions ([#&#8203;26114](https://redirect.github.com/astral-sh/ruff/pull/26114)) ##### Bug fixes - Fall back to default settings when editor-only settings are invalid ([#&#8203;26244](https://redirect.github.com/astral-sh/ruff/pull/26244)) - Fix panic when inserting text at a notebook cell boundary ([#&#8203;26111](https://redirect.github.com/astral-sh/ruff/pull/26111)) ##### Rule changes - \[`pylint`] Update fix suggestions for `__floor__`, `__trunc__`, `__length_hint__`, and `__matmul__` variants (`PLC2801`) ([#&#8203;26239](https://redirect.github.com/astral-sh/ruff/pull/26239)) ##### Performance - Avoid allocating when parsing single string literals ([#&#8203;26200](https://redirect.github.com/astral-sh/ruff/pull/26200)) - Avoid reallocating singleton call arguments ([#&#8203;26223](https://redirect.github.com/astral-sh/ruff/pull/26223)) - Lazily create source files for lint diagnostics ([#&#8203;26226](https://redirect.github.com/astral-sh/ruff/pull/26226)) - Optimize formatter text width and indentation ([#&#8203;26236](https://redirect.github.com/astral-sh/ruff/pull/26236)) - Reserve capacity for builtin bindings ([#&#8203;26229](https://redirect.github.com/astral-sh/ruff/pull/26229)) - Skip repeated-key checks for singleton dictionaries ([#&#8203;26228](https://redirect.github.com/astral-sh/ruff/pull/26228)) - Use ArrayVec for qualified name segments ([#&#8203;26224](https://redirect.github.com/astral-sh/ruff/pull/26224)) ##### Documentation - \[`flake8-pyi`] Note that `PYI051` is an opinionated stylistic rule ([#&#8203;26179](https://redirect.github.com/astral-sh/ruff/pull/26179)) - \[`pyupgrade`] Clarify `UP029` as a Python 2 compatibility rule ([#&#8203;26243](https://redirect.github.com/astral-sh/ruff/pull/26243)) ##### Other changes - Publish Ruff crates to crates.io ([#&#8203;26271](https://redirect.github.com/astral-sh/ruff/pull/26271)) ##### Contributors - [@&#8203;MakenRosa](https://redirect.github.com/MakenRosa) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;trilamsr](https://redirect.github.com/trilamsr) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;sanjibani](https://redirect.github.com/sanjibani) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) ### [`v0.15.18`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01518) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.17...0.15.18) Released on 2026-06-18. ##### Preview features - Handle nested `ruff:ignore` comments ([#&#8203;25791](https://redirect.github.com/astral-sh/ruff/pull/25791)) - Stop displaying severity in output ([#&#8203;26050](https://redirect.github.com/astral-sh/ruff/pull/26050)) - Use human-readable names in CLI output ([#&#8203;25937](https://redirect.github.com/astral-sh/ruff/pull/25937)) - Use human-readable names in LSP and playground diagnostics ([#&#8203;26058](https://redirect.github.com/astral-sh/ruff/pull/26058)) - \[`pydocstyle`] Prevent property docstrings starting with verbs (`D421`) ([#&#8203;23775](https://redirect.github.com/astral-sh/ruff/pull/23775)) - \[`flake8-pyi`] Extend `PYI033` to Python files ([#&#8203;26129](https://redirect.github.com/astral-sh/ruff/pull/26129)) ##### Bug fixes - Detect equivalent numeric mapping keys ([#&#8203;26009](https://redirect.github.com/astral-sh/ruff/pull/26009)) - Detect mapping keys equivalent to booleans ([#&#8203;25982](https://redirect.github.com/astral-sh/ruff/pull/25982)) - Detect repeated signed and complex dictionary keys ([#&#8203;26007](https://redirect.github.com/astral-sh/ruff/pull/26007)) ##### Rule changes - \[`flake8-pyi`] Rename `PYI033` to `legacy-type-comment` ([#&#8203;26131](https://redirect.github.com/astral-sh/ruff/pull/26131)) ##### Performance - Use `ThinVec` for call keywords ([#&#8203;25999](https://redirect.github.com/astral-sh/ruff/pull/25999)) - Inline parser recovery context checks ([#&#8203;26038](https://redirect.github.com/astral-sh/ruff/pull/26038)) - Match parser keywords as bytes ([#&#8203;26037](https://redirect.github.com/astral-sh/ruff/pull/26037)) - Move value parsing out of lexing ([#&#8203;25360](https://redirect.github.com/astral-sh/ruff/pull/25360)) ##### Server - Render subdiagnostics and secondary annotations as related information ([#&#8203;26011](https://redirect.github.com/astral-sh/ruff/pull/26011)) ##### Documentation - Update fix availability for always-fixable rules ([#&#8203;26091](https://redirect.github.com/astral-sh/ruff/pull/26091)) - \[`flake8-tidy-imports`] Add fix safety section (`TID252`) ([#&#8203;17491](https://redirect.github.com/astral-sh/ruff/pull/17491)) ##### Parser - Reject `__debug__` lambda parameters ([#&#8203;26022](https://redirect.github.com/astral-sh/ruff/pull/26022)) - Reject `_` as a match-pattern target ([#&#8203;25977](https://redirect.github.com/astral-sh/ruff/pull/25977)) - Reject multiple starred names in sequence patterns ([#&#8203;25976](https://redirect.github.com/astral-sh/ruff/pull/25976)) - Reject parenthesized star imports ([#&#8203;26021](https://redirect.github.com/astral-sh/ruff/pull/26021)) - Reject starred comprehension targets ([#&#8203;26023](https://redirect.github.com/astral-sh/ruff/pull/26023)) - Reject unparenthesized generator expressions in class bases ([#&#8203;25978](https://redirect.github.com/astral-sh/ruff/pull/25978)) - Reject `yield` expressions after commas ([#&#8203;26024](https://redirect.github.com/astral-sh/ruff/pull/26024)) - Validate function type parameter default order ([#&#8203;25981](https://redirect.github.com/astral-sh/ruff/pull/25981)) ##### Playground - Make diagnostic links clickable ([#&#8203;26104](https://redirect.github.com/astral-sh/ruff/pull/26104)) - Use diagnostic tags ([#&#8203;26105](https://redirect.github.com/astral-sh/ruff/pull/26105)) ##### Contributors - [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;gtkacz](https://redirect.github.com/gtkacz) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) - [@&#8203;Kalmaegi](https://redirect.github.com/Kalmaegi) ### [`v0.15.17`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01517) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.15.16...0.15.17) Released on 2026-06-11. ##### Preview features - Allow human-readable names in suppression comments ([#&#8203;25614](https://redirect.github.com/astral-sh/ruff/pull/25614)) - Fix handling of `ignore` comments within a `disable`/`enable` pair ([#&#8203;25845](https://redirect.github.com/astral-sh/ruff/pull/25845)) - Prioritize human-readable names in CLI output ([#&#8203;25869](https://redirect.github.com/astral-sh/ruff/pull/25869)) - Respect diagnostic start and parent ranges and trailing comments in `ruff:ignore` suppressions ([#&#8203;25673](https://redirect.github.com/astral-sh/ruff/pull/25673)) - \[`flake8-async`] Add `trio.as_safe_channel` to safe decorators (`ASYNC119`) ([#&#8203;25775](https://redirect.github.com/astral-sh/ruff/pull/25775)) - \[`flake8-pytest-style`] Also check `pytest_asyncio` fixtures ([#&#8203;25375](https://redirect.github.com/astral-sh/ruff/pull/25375)) - \[`ruff`] Ban `pytest` autouse fixtures (`RUF076`) ([#&#8203;25477](https://redirect.github.com/astral-sh/ruff/pull/25477)) - \[`pyupgrade`] Add `from __future__ import annotations` automatically (`UP007`, `UP045`) ([#&#8203;23259](https://redirect.github.com/astral-sh/ruff/pull/23259)) ##### Bug fixes - Fix diagnostic when `ruff:enable` or `ruff:disable` appears where `ruff:ignore` is expected ([#&#8203;25700](https://redirect.github.com/astral-sh/ruff/pull/25700)) - \[`pyupgrade`] Preserve leading empty literals to avoid syntax errors (`UP032`) ([#&#8203;25491](https://redirect.github.com/astral-sh/ruff/pull/25491)) ##### Rule changes - \[`flake8-pytest-style`] Clarify diagnostic message for single parameters (`PT007`) ([#&#8203;25592](https://redirect.github.com/astral-sh/ruff/pull/25592)) - \[`numpy`] Drop autofix for `np.in1d` (`NPY201`) ([#&#8203;25612](https://redirect.github.com/astral-sh/ruff/pull/25612)) - \[`pylint`] Exempt Python version comparisons (`PLR2004`) ([#&#8203;25743](https://redirect.github.com/astral-sh/ruff/pull/25743)) ##### Performance - Reserve AST `Vec`s with correct capacity for common cases ([#&#8203;25451](https://redirect.github.com/astral-sh/ruff/pull/25451)) ##### Formatter - Preserve whitespace for Quarto cell option comments ([#&#8203;25641](https://redirect.github.com/astral-sh/ruff/pull/25641)) ##### CLI - Allow rule names in `ruff rule` ([#&#8203;25640](https://redirect.github.com/astral-sh/ruff/pull/25640)) ##### Other changes - Fix playground diagnostics scrollbars ([#&#8203;25642](https://redirect.github.com/astral-sh/ruff/pull/25642)) ##### Contributors - [@&#8203;SuryanshSS1011](https://redirect.github.com/SuryanshSS1011) - [@&#8203;anishgirianish](https://redirect.github.com/anishgirianish) - [@&#8203;romero-deshaw](https://redirect.github.com/romero-deshaw) - [@&#8203;karlhillx](https://redirect.github.com/karlhillx) - [@&#8203;carljm](https://redirect.github.com/carljm) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;11happy](https://redirect.github.com/11happy) - [@&#8203;Kilo59](https://redirect.github.com/Kilo59) - [@&#8203;oconnor663](https://redirect.github.com/oconnor663) - [@&#8203;LeonidasZhak](https://redirect.github.com/LeonidasZhak) - [@&#8203;DavisVaughan](https://redirect.github.com/DavisVaughan) - [@&#8203;MeGaGiGaGon](https://redirect.github.com/MeGaGiGaGon) - [@&#8203;jonathandung](https://redirect.github.com/jonathandung) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;brianmego](https://redirect.github.com/brianmego) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, 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/GoogleCloudPlatform/alloydb-python-connector). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMTkuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI0Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent e174ed1 commit d1f544c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test = [
7878
"coverage",
7979
]
8080
lint = [
81-
"ruff==0.15.16",
81+
"ruff==0.15.21",
8282
"mypy",
8383
"types-aiofiles",
8484
"types-requests",

0 commit comments

Comments
 (0)