Commit d1f544c
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` |

|

|
---
### 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
([#​26346](https://redirect.github.com/astral-sh/ruff/pull/26346))
- \[`flake8-comprehensions`] Drop `C409` tuple comprehension preview
behavior
([#​25707](https://redirect.github.com/astral-sh/ruff/pull/25707))
- Avoid whitespace normalization when formatting comments
([#​26455](https://redirect.github.com/astral-sh/ruff/pull/26455))
- \[`pyupgrade`] Lint and fix use of deprecated `abc` decorators
(`UP051`)
([#​26417](https://redirect.github.com/astral-sh/ruff/pull/26417))
##### Bug fixes
- Refine non-empty f-string detection
([#​26526](https://redirect.github.com/astral-sh/ruff/pull/26526))
- Detect syntax errors in individual notebook cells
([#​26419](https://redirect.github.com/astral-sh/ruff/pull/26419))
- \[`flake8-implicit-str-concat`] Fix `ISC003` autofix incorrectly
stripping `+` from comments
([#​26554](https://redirect.github.com/astral-sh/ruff/pull/26554))
##### Rule changes
- \[`flake8-executable`] Mark `EXE004` fix as unsafe
([#​26033](https://redirect.github.com/astral-sh/ruff/pull/26033))
- \[`flake8-pyi`] Mark `PYI061` fixes as unsafe in Python files
([#​26533](https://redirect.github.com/astral-sh/ruff/pull/26533))
- \[`pydocstyle`] Skip `overload-with-docstring` in stub files (`D418`)
([#​26318](https://redirect.github.com/astral-sh/ruff/pull/26318))
##### Performance
- Avoid per-token source index visitor calls
([#​26506](https://redirect.github.com/astral-sh/ruff/pull/26506))
- Cache parenthesized expression boundaries in the formatter
([#​26344](https://redirect.github.com/astral-sh/ruff/pull/26344))
- Improve performance of rendering edits in preview mode
([#​26565](https://redirect.github.com/astral-sh/ruff/pull/26565))
- Inline `fits_element` in formatter
([#​26429](https://redirect.github.com/astral-sh/ruff/pull/26429))
- Inline formatter printing hot paths
([#​26504](https://redirect.github.com/astral-sh/ruff/pull/26504))
- Lazily create builtin bindings
([#​26510](https://redirect.github.com/astral-sh/ruff/pull/26510))
- Skip empty trivia scans in the source indexer
([#​26507](https://redirect.github.com/astral-sh/ruff/pull/26507))
- Use ICF for macOS release builds
([#​25780](https://redirect.github.com/astral-sh/ruff/pull/25780))
##### Formatter
- Add `--extend-exclude` to `ruff format`
([#​26372](https://redirect.github.com/astral-sh/ruff/pull/26372))
##### Documentation
- Add "How does Ruff's import sorting compare to isort?" link to README
([#​26530](https://redirect.github.com/astral-sh/ruff/pull/26530))
- Fix Mozilla Firefox repository link in README
([#​26537](https://redirect.github.com/astral-sh/ruff/pull/26537))
- \[`flake8-bandit`] Fix misleading docstring for `mako-templates`
(`S702`)
([#​26432](https://redirect.github.com/astral-sh/ruff/pull/26432))
- \[`ruff`] Fix non-triggering example for `if-key-in-dict-del`
(`RUF051`)
([#​26433](https://redirect.github.com/astral-sh/ruff/pull/26433))
##### Contributors
- [@​EkriirkE](https://redirect.github.com/EkriirkE)
- [@​tingerrr](https://redirect.github.com/tingerrr)
- [@​s-rigaud](https://redirect.github.com/s-rigaud)
-
[@​nikolauspschuetz](https://redirect.github.com/nikolauspschuetz)
- [@​Avasam](https://redirect.github.com/Avasam)
- [@​ntBre](https://redirect.github.com/ntBre)
- [@​omar-y-abdi](https://redirect.github.com/omar-y-abdi)
- [@​AlexWaygood](https://redirect.github.com/AlexWaygood)
- [@​sylvestre](https://redirect.github.com/sylvestre)
- [@​shaanmajid](https://redirect.github.com/shaanmajid)
- [@​lerebear](https://redirect.github.com/lerebear)
- [@​baltasarblanco](https://redirect.github.com/baltasarblanco)
- [@​Sanjays2402](https://redirect.github.com/Sanjays2402)
- [@​ZedThree](https://redirect.github.com/ZedThree)
- [@​servusdei2018](https://redirect.github.com/servusdei2018)
- [@​charliermarsh](https://redirect.github.com/charliermarsh)
- [@​jesco-absolute](https://redirect.github.com/jesco-absolut)
- [@​velikodniy](https://redirect.github.com/velikodniy)
- [@​zaniebot](https://redirect.github.com/zaniebot)
- [@​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
([#​25887](https://redirect.github.com/astral-sh/ruff/pull/25887))
- Emit a warning instead of an error for unknown rule selectors
([#​26113](https://redirect.github.com/astral-sh/ruff/pull/26113))
- Match `noqa` shebang handling in `ruff:ignore` comments
([#​26286](https://redirect.github.com/astral-sh/ruff/pull/26286))
- \[`ruff`] Remove `pytest-fixture-autouse` (`RUF076`)
([#​26240](https://redirect.github.com/astral-sh/ruff/pull/26240),
[#​26371](https://redirect.github.com/astral-sh/ruff/pull/26371))
##### Documentation
- Add versioning sections to custom crate READMEs
([#​26317](https://redirect.github.com/astral-sh/ruff/pull/26317))
- Update `ruff_python_parser` README for crates.io
([#​26315](https://redirect.github.com/astral-sh/ruff/pull/26315))
- \[`perflint`] Clarify that `PERF402` applies to any iterable
([#​26242](https://redirect.github.com/astral-sh/ruff/pull/26242))
##### Contributors
- [@​dhruvmanila](https://redirect.github.com/dhruvmanila)
- [@​MichaReiser](https://redirect.github.com/MichaReiser)
- [@​ntBre](https://redirect.github.com/ntBre)
- [@​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
([#​26114](https://redirect.github.com/astral-sh/ruff/pull/26114))
##### Bug fixes
- Fall back to default settings when editor-only settings are invalid
([#​26244](https://redirect.github.com/astral-sh/ruff/pull/26244))
- Fix panic when inserting text at a notebook cell boundary
([#​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`)
([#​26239](https://redirect.github.com/astral-sh/ruff/pull/26239))
##### Performance
- Avoid allocating when parsing single string literals
([#​26200](https://redirect.github.com/astral-sh/ruff/pull/26200))
- Avoid reallocating singleton call arguments
([#​26223](https://redirect.github.com/astral-sh/ruff/pull/26223))
- Lazily create source files for lint diagnostics
([#​26226](https://redirect.github.com/astral-sh/ruff/pull/26226))
- Optimize formatter text width and indentation
([#​26236](https://redirect.github.com/astral-sh/ruff/pull/26236))
- Reserve capacity for builtin bindings
([#​26229](https://redirect.github.com/astral-sh/ruff/pull/26229))
- Skip repeated-key checks for singleton dictionaries
([#​26228](https://redirect.github.com/astral-sh/ruff/pull/26228))
- Use ArrayVec for qualified name segments
([#​26224](https://redirect.github.com/astral-sh/ruff/pull/26224))
##### Documentation
- \[`flake8-pyi`] Note that `PYI051` is an opinionated stylistic rule
([#​26179](https://redirect.github.com/astral-sh/ruff/pull/26179))
- \[`pyupgrade`] Clarify `UP029` as a Python 2 compatibility rule
([#​26243](https://redirect.github.com/astral-sh/ruff/pull/26243))
##### Other changes
- Publish Ruff crates to crates.io
([#​26271](https://redirect.github.com/astral-sh/ruff/pull/26271))
##### Contributors
- [@​MakenRosa](https://redirect.github.com/MakenRosa)
- [@​MichaReiser](https://redirect.github.com/MichaReiser)
- [@​trilamsr](https://redirect.github.com/trilamsr)
- [@​ntBre](https://redirect.github.com/ntBre)
- [@​sanjibani](https://redirect.github.com/sanjibani)
- [@​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
([#​25791](https://redirect.github.com/astral-sh/ruff/pull/25791))
- Stop displaying severity in output
([#​26050](https://redirect.github.com/astral-sh/ruff/pull/26050))
- Use human-readable names in CLI output
([#​25937](https://redirect.github.com/astral-sh/ruff/pull/25937))
- Use human-readable names in LSP and playground diagnostics
([#​26058](https://redirect.github.com/astral-sh/ruff/pull/26058))
- \[`pydocstyle`] Prevent property docstrings starting with verbs
(`D421`)
([#​23775](https://redirect.github.com/astral-sh/ruff/pull/23775))
- \[`flake8-pyi`] Extend `PYI033` to Python files
([#​26129](https://redirect.github.com/astral-sh/ruff/pull/26129))
##### Bug fixes
- Detect equivalent numeric mapping keys
([#​26009](https://redirect.github.com/astral-sh/ruff/pull/26009))
- Detect mapping keys equivalent to booleans
([#​25982](https://redirect.github.com/astral-sh/ruff/pull/25982))
- Detect repeated signed and complex dictionary keys
([#​26007](https://redirect.github.com/astral-sh/ruff/pull/26007))
##### Rule changes
- \[`flake8-pyi`] Rename `PYI033` to `legacy-type-comment`
([#​26131](https://redirect.github.com/astral-sh/ruff/pull/26131))
##### Performance
- Use `ThinVec` for call keywords
([#​25999](https://redirect.github.com/astral-sh/ruff/pull/25999))
- Inline parser recovery context checks
([#​26038](https://redirect.github.com/astral-sh/ruff/pull/26038))
- Match parser keywords as bytes
([#​26037](https://redirect.github.com/astral-sh/ruff/pull/26037))
- Move value parsing out of lexing
([#​25360](https://redirect.github.com/astral-sh/ruff/pull/25360))
##### Server
- Render subdiagnostics and secondary annotations as related information
([#​26011](https://redirect.github.com/astral-sh/ruff/pull/26011))
##### Documentation
- Update fix availability for always-fixable rules
([#​26091](https://redirect.github.com/astral-sh/ruff/pull/26091))
- \[`flake8-tidy-imports`] Add fix safety section (`TID252`)
([#​17491](https://redirect.github.com/astral-sh/ruff/pull/17491))
##### Parser
- Reject `__debug__` lambda parameters
([#​26022](https://redirect.github.com/astral-sh/ruff/pull/26022))
- Reject `_` as a match-pattern target
([#​25977](https://redirect.github.com/astral-sh/ruff/pull/25977))
- Reject multiple starred names in sequence patterns
([#​25976](https://redirect.github.com/astral-sh/ruff/pull/25976))
- Reject parenthesized star imports
([#​26021](https://redirect.github.com/astral-sh/ruff/pull/26021))
- Reject starred comprehension targets
([#​26023](https://redirect.github.com/astral-sh/ruff/pull/26023))
- Reject unparenthesized generator expressions in class bases
([#​25978](https://redirect.github.com/astral-sh/ruff/pull/25978))
- Reject `yield` expressions after commas
([#​26024](https://redirect.github.com/astral-sh/ruff/pull/26024))
- Validate function type parameter default order
([#​25981](https://redirect.github.com/astral-sh/ruff/pull/25981))
##### Playground
- Make diagnostic links clickable
([#​26104](https://redirect.github.com/astral-sh/ruff/pull/26104))
- Use diagnostic tags
([#​26105](https://redirect.github.com/astral-sh/ruff/pull/26105))
##### Contributors
- [@​AlexWaygood](https://redirect.github.com/AlexWaygood)
- [@​ntBre](https://redirect.github.com/ntBre)
- [@​gtkacz](https://redirect.github.com/gtkacz)
- [@​MichaReiser](https://redirect.github.com/MichaReiser)
- [@​charliermarsh](https://redirect.github.com/charliermarsh)
- [@​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
([#​25614](https://redirect.github.com/astral-sh/ruff/pull/25614))
- Fix handling of `ignore` comments within a `disable`/`enable` pair
([#​25845](https://redirect.github.com/astral-sh/ruff/pull/25845))
- Prioritize human-readable names in CLI output
([#​25869](https://redirect.github.com/astral-sh/ruff/pull/25869))
- Respect diagnostic start and parent ranges and trailing comments in
`ruff:ignore` suppressions
([#​25673](https://redirect.github.com/astral-sh/ruff/pull/25673))
- \[`flake8-async`] Add `trio.as_safe_channel` to safe decorators
(`ASYNC119`)
([#​25775](https://redirect.github.com/astral-sh/ruff/pull/25775))
- \[`flake8-pytest-style`] Also check `pytest_asyncio` fixtures
([#​25375](https://redirect.github.com/astral-sh/ruff/pull/25375))
- \[`ruff`] Ban `pytest` autouse fixtures (`RUF076`)
([#​25477](https://redirect.github.com/astral-sh/ruff/pull/25477))
- \[`pyupgrade`] Add `from __future__ import annotations` automatically
(`UP007`, `UP045`)
([#​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
([#​25700](https://redirect.github.com/astral-sh/ruff/pull/25700))
- \[`pyupgrade`] Preserve leading empty literals to avoid syntax errors
(`UP032`)
([#​25491](https://redirect.github.com/astral-sh/ruff/pull/25491))
##### Rule changes
- \[`flake8-pytest-style`] Clarify diagnostic message for single
parameters (`PT007`)
([#​25592](https://redirect.github.com/astral-sh/ruff/pull/25592))
- \[`numpy`] Drop autofix for `np.in1d` (`NPY201`)
([#​25612](https://redirect.github.com/astral-sh/ruff/pull/25612))
- \[`pylint`] Exempt Python version comparisons (`PLR2004`)
([#​25743](https://redirect.github.com/astral-sh/ruff/pull/25743))
##### Performance
- Reserve AST `Vec`s with correct capacity for common cases
([#​25451](https://redirect.github.com/astral-sh/ruff/pull/25451))
##### Formatter
- Preserve whitespace for Quarto cell option comments
([#​25641](https://redirect.github.com/astral-sh/ruff/pull/25641))
##### CLI
- Allow rule names in `ruff rule`
([#​25640](https://redirect.github.com/astral-sh/ruff/pull/25640))
##### Other changes
- Fix playground diagnostics scrollbars
([#​25642](https://redirect.github.com/astral-sh/ruff/pull/25642))
##### Contributors
- [@​SuryanshSS1011](https://redirect.github.com/SuryanshSS1011)
- [@​anishgirianish](https://redirect.github.com/anishgirianish)
- [@​romero-deshaw](https://redirect.github.com/romero-deshaw)
- [@​karlhillx](https://redirect.github.com/karlhillx)
- [@​carljm](https://redirect.github.com/carljm)
- [@​ntBre](https://redirect.github.com/ntBre)
- [@​11happy](https://redirect.github.com/11happy)
- [@​Kilo59](https://redirect.github.com/Kilo59)
- [@​oconnor663](https://redirect.github.com/oconnor663)
- [@​LeonidasZhak](https://redirect.github.com/LeonidasZhak)
- [@​DavisVaughan](https://redirect.github.com/DavisVaughan)
- [@​MeGaGiGaGon](https://redirect.github.com/MeGaGiGaGon)
- [@​jonathandung](https://redirect.github.com/jonathandung)
- [@​MichaReiser](https://redirect.github.com/MichaReiser)
- [@​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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments