chore(deps): update dependency lint/ruff to v0.1.11
Metadata
Current evaluation
Merged a Renovate-generated update upgrading lint/ruff from v0.1.7 to v0.1.11. The change passed CI checks, maintained 99.20% test coverage, received two approvals, and was successfully merged.
Suggested action: —
No scores available.
Issue body
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [lint/ruff](https://docs.astral.sh/ruff) ([source](https://togithub.com/astral-sh/ruff), [changelog](https://togithub.com/astral-sh/ruff/blob/main/CHANGELOG.md)) | `==0.1.7` -> `==0.1.11` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
<details>
<summary>astral-sh/ruff (lint/ruff)</summary>
### [`v0.1.11`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0111)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.1.10...v0.1.11)
##### Preview features
- \[`pylint`] Implement `super-without-brackets` (`W0245`) ([#​9257](https://togithub.com/astral-sh/ruff/pull/9257))
##### Bug fixes
- Check path string properly in `python -m ruff` invocations ([#​9367](https://togithub.com/astral-sh/ruff/pull/9367))
##### Documentation
- Tweak `relative-imports` message ([#​9365](https://togithub.com/astral-sh/ruff/pull/9365))
- Add fix safety note for `yield-in-for-loop` ([#​9364](https://togithub.com/astral-sh/ruff/pull/9364))
### [`v0.1.10`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0110)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.1.9...v0.1.10)
##### Preview features
- Improve `dummy_implementations` preview style formatting ([#​9240](https://togithub.com/astral-sh/ruff/pull/9240))
- Normalise Hex and unicode escape sequences in strings ([#​9280](https://togithub.com/astral-sh/ruff/pull/9280))
- Parenthesize long type annotations in annotated assignments ([#​9210](https://togithub.com/astral-sh/ruff/pull/9210))
- Parenthesize multi-context managers in `with` statements ([#​9222](https://togithub.com/astral-sh/ruff/pull/9222))
- \[`flake8-pyi`] Implement `generator-return-from-iter-method` (`PYI058`) ([#​9313](https://togithub.com/astral-sh/ruff/pull/9313))
- \[`pylint`] Implement `empty-comment` (`PLR2044`) ([#​9174](https://togithub.com/astral-sh/ruff/pull/9174))
- \[`refurb`] Implement `bit-count` (`FURB161`) ([#​9265](https://togithub.com/astral-sh/ruff/pull/9265))
- \[`ruff`] Add `never-union` rule to detect redundant `typing.NoReturn` and `typing.Never` ([#​9217](https://togithub.com/astral-sh/ruff/pull/9217))
##### CLI
- Add paths to TOML parse errors ([#​9358](https://togithub.com/astral-sh/ruff/pull/9358))
- Add row and column numbers to formatter parse errors ([#​9321](https://togithub.com/astral-sh/ruff/pull/9321))
- Improve responsiveness when invoked via Python ([#​9315](https://togithub.com/astral-sh/ruff/pull/9315))
- Short rule messages should not end with a period ([#​9345](https://togithub.com/astral-sh/ruff/pull/9345))
##### Configuration
- Respect runtime-required decorators on functions ([#​9317](https://togithub.com/astral-sh/ruff/pull/9317))
##### Bug fixes
- Avoid `asyncio-dangling-task` for nonlocal and global bindings ([#​9263](https://togithub.com/astral-sh/ruff/pull/9263))
- Escape trailing placeholders in rule documentation ([#​9301](https://togithub.com/astral-sh/ruff/pull/9301))
- Fix continuation detection following multi-line strings ([#​9332](https://togithub.com/astral-sh/ruff/pull/9332))
- Fix scoping for generators in named expressions in classes ([#​9248](https://togithub.com/astral-sh/ruff/pull/9248))
- Port from obsolete wsl crate to is-wsl ([#​9356](https://togithub.com/astral-sh/ruff/pull/9356))
- Remove special pre-visit for module docstrings ([#​9261](https://togithub.com/astral-sh/ruff/pull/9261))
- Respect `__str__` definitions from super classes ([#​9338](https://togithub.com/astral-sh/ruff/pull/9338))
- Respect `unused-noqa` via `per-file-ignores` ([#​9300](https://togithub.com/astral-sh/ruff/pull/9300))
- Respect attribute chains when resolving builtin call paths ([#​9309](https://togithub.com/astral-sh/ruff/pull/9309))
- Treat all `typing_extensions` members as typing aliases ([#​9335](https://togithub.com/astral-sh/ruff/pull/9335))
- Use `Display` for formatter parse errors ([#​9316](https://togithub.com/astral-sh/ruff/pull/9316))
- Wrap subscripted dicts in parens for f-string conversion ([#​9238](https://togithub.com/astral-sh/ruff/pull/9238))
- \[`flake8-annotations`] Avoid adding return types to stub methods ([#​9277](https://togithub.com/astral-sh/ruff/pull/9277))
- \[`flake8-annotations`] Respect mixed `return` and `raise` cases in return-type analysis ([#​9310](https://togithub.com/astral-sh/ruff/pull/9310))
- \[`flake8-bandit`] Don't report violations when `SafeLoader` is imported from `yaml.loader` (`S506`) ([#​9299](https://togithub.com/astral-sh/ruff/pull/9299))
- \[`pylint`] Avoid panic when comment is preceded by Unicode ([#​9331](https://togithub.com/astral-sh/ruff/pull/9331))
- \[`pylint`] Change `PLR0917` error message to match other `PLR09XX` messages ([#​9308](https://togithub.com/astral-sh/ruff/pull/9308))
- \[`refurb`] Avoid false positives for `math-constant` (`FURB152`) ([#​9290](https://togithub.com/astral-sh/ruff/pull/9290))
##### Documentation
- Expand target name for better rule documentation ([#​9302](https://togithub.com/astral-sh/ruff/pull/9302))
- Fix typos found by codespell ([#​9346](https://togithub.com/astral-sh/ruff/pull/9346))
- \[`perflint`] Document `PERF102` fix un-safety ([#​9351](https://togithub.com/astral-sh/ruff/pull/9351))
- \[`pyupgrade`] Document `UP007` fix un-safety ([#​9306](https://togithub.com/astral-sh/ruff/pull/9306))
### [`v0.1.9`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#019)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.1.8...v0.1.9)
##### Breaking changes
- Add site-packages to default exclusions ([#​9188](https://togithub.com/astral-sh/ruff/pull/9188))
##### Preview features
- Fix: Avoid parenthesizing subscript targets and values ([#​9209](https://togithub.com/astral-sh/ruff/pull/9209))
- \[`pylint`] Implement `too-many-locals` (`PLR0914`) ([#​9163](https://togithub.com/astral-sh/ruff/pull/9163))
- Implement `reimplemented_operator` (FURB118) ([#​9171](https://togithub.com/astral-sh/ruff/pull/9171))
- Add a rule to detect string members in runtime-evaluated unions ([#​9143](https://togithub.com/astral-sh/ruff/pull/9143))
- Implement `no_blank_line_before_class_docstring` preview style ([#​9154](https://togithub.com/astral-sh/ruff/pull/9154))
##### Rule changes
- `CONSTANT_CASE` variables are improperly flagged for yoda violation (`SIM300`) ([#​9164](https://togithub.com/astral-sh/ruff/pull/9164))
- \[`flake8-pyi`] Cover ParamSpecs and TypeVarTuples (`PYI018`) ([#​9198](https://togithub.com/astral-sh/ruff/pull/9198))
- \[`flake8-bugbear`] Add fix for `zip-without-explicit-strict` (`B905`) ([#​9176](https://togithub.com/astral-sh/ruff/pull/9176))
- Add fix to automatically remove `print` and `pprint` statements (`T201`, `T203`) ([#​9208](https://togithub.com/astral-sh/ruff/pull/9208))
- Prefer `Never` to `NoReturn` in auto-typing in Python >= 3.11 (`ANN201`) ([#​9213](https://togithub.com/astral-sh/ruff/pull/9213))
##### Formatter
- `can_omit_optional_parentheses`: Exit early for unparenthesized expressions ([#​9125](https://togithub.com/astral-sh/ruff/pull/9125))
- Fix `dynamic` mode with doctests so that it doesn't exceed configured line width ([#​9129](https://togithub.com/astral-sh/ruff/pull/9129))
- Fix `can_omit_optional_parentheses` for expressions with a right most fstring ([#​9124](https://togithub.com/astral-sh/ruff/pull/9124))
- Add `target_version` to formatter options ([#​9220](https://togithub.com/astral-sh/ruff/pull/9220))
##### CLI
- Update `ruff format --check` to display message for already formatted files ([#​9153](https://togithub.com/astral-sh/ruff/pull/9153))
##### Bug fixes
- Reverse order of arguments for `operator.contains` ([#​9192](https://togithub.com/astral-sh/ruff/pull/9192))
- Iterate over lambdas in deferred type annotations ([#​9175](https://togithub.com/astral-sh/ruff/pull/9175))
- Fix panic in `D208` with multibyte indent ([#​9147](https://togithub.com/astral-sh/ruff/pull/9147))
- Add support for `NoReturn` in auto-return-typing ([#​9206](https://togithub.com/astral-sh/ruff/pull/9206))
- Allow removal of `typing` from `exempt-modules` ([#​9214](https://togithub.com/astral-sh/ruff/pull/9214))
- Avoid `mutable-class-default` violations for Pydantic subclasses ([#​9187](https://togithub.com/astral-sh/ruff/pull/9187))
- Fix dropped union expressions for piped non-types in `PYI055` autofix ([#​9161](https://togithub.com/astral-sh/ruff/pull/9161))
- Enable annotation quoting for multi-line expressions ([#​9142](https://togithub.com/astral-sh/ruff/pull/9142))
- Deduplicate edits when quoting annotations ([#​9140](https://togithub.com/astral-sh/ruff/pull/9140))
- Prevent invalid utf8 indexing in cell magic detection ([#​9146](https://togithub.com/astral-sh/ruff/pull/9146))
- Avoid nested quotations in auto-quoting fix ([#​9168](https://togithub.com/astral-sh/ruff/pull/9168))
- Add base-class inheritance detection to flake8-django rules ([#​9151](https://togithub.com/astral-sh/ruff/pull/9151))
- Avoid `asyncio-dangling-task` violations on shadowed bindings ([#​9215](https://togithub.com/astral-sh/ruff/pull/9215))
##### Documentation
- Fix blog post URL in changelog ([#​9119](https://togithub.com/astral-sh/ruff/pull/9119))
- Add error suppression hint for multi-line strings ([#​9205](https://togithub.com/astral-sh/ruff/pull/9205))
- Fix typo in SemanticModel.parent_expression docstring ([#​9167](https://togithub.com/astral-sh/ruff/pull/9167))
- Document link between import sorting and formatter ([#​9117](https://togithub.com/astral-sh/ruff/pull/9117))
### [`v0.1.8`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#018)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.1.7...v0.1.8)
This release includes opt-in support for formatting Python snippets within
docstrings via the `docstring-code-format` setting.
[Check out the blog post](https://astral.sh/blog/ruff-v0.1.8) for more details!
##### Preview features
- Add `"preserve"` quote-style to mimic Black's skip-string-normalization ([#​8822](https://togithub.com/astral-sh/ruff/pull/8822))
- Implement `prefer_splitting_right_hand_side_of_assignments` preview style ([#​8943](https://togithub.com/astral-sh/ruff/pull/8943))
- \[`pycodestyle`] Add fix for `unexpected-spaces-around-keyword-parameter-equals` ([#​9072](https://togithub.com/astral-sh/ruff/pull/9072))
- \[`pycodestyle`] Add fix for comment-related whitespace rules ([#​9075](https://togithub.com/astral-sh/ruff/pull/9075))
- \[`pycodestyle`] Allow `sys.path` modifications between imports ([#​9047](https://togithub.com/astral-sh/ruff/pull/9047))
- \[`refurb`] Implement `hashlib-digest-hex` (`FURB181`) ([#​9077](https://togithub.com/astral-sh/ruff/pull/9077))
##### Rule changes
- Allow `flake8-type-checking` rules to automatically quote runtime-evaluated references ([#​6001](https://togithub.com/astral-sh/ruff/pull/6001))
- Allow transparent cell magics in Jupyter Notebooks ([#​8911](https://togithub.com/astral-sh/ruff/pull/8911))
- \[`flake8-annotations`] Avoid `ANN2xx` fixes for abstract methods with empty bodies ([#​9034](https://togithub.com/astral-sh/ruff/pull/9034))
- \[`flake8-self`] Ignore underscore references in type annotations ([#​9036](https://togithub.com/astral-sh/ruff/pull/9036))
- \[`pep8-naming`] Allow class names when `apps.get_model` is a non-string ([#​9065](https://togithub.com/astral-sh/ruff/pull/9065))
- \[`pycodestyle`] Allow `matplotlib.use` calls to intersperse imports ([#​9094](https://togithub.com/astral-sh/ruff/pull/9094))
- \[`pyflakes`] Support fixing unused assignments in tuples by renaming variables (`F841`) ([#​9107](https://togithub.com/astral-sh/ruff/pull/9107))
- \[`pylint`] Add fix for `subprocess-run-without-check` (`PLW1510`) ([#​6708](https://togithub.com/astral-sh/ruff/pull/6708))
##### Formatter
- Add `docstring-code-format` knob to enable docstring snippet formatting ([#​8854](https://togithub.com/astral-sh/ruff/pull/8854))
- Use double quotes for all docstrings, including single-quoted docstrings ([#​9020](https://togithub.com/astral-sh/ruff/pull/9020))
- Implement "dynamic" line width mode for docstring code formatting ([#​9098](https://togithub.com/astral-sh/ruff/pull/9098))
- Support reformatting Markdown code blocks ([#​9030](https://togithub.com/astral-sh/ruff/pull/9030))
- add support for formatting reStructuredText code snippets ([#​9003](https://togithub.com/astral-sh/ruff/pull/9003))
- Avoid trailing comma for single-argument with positional separator ([#​9076](https://togithub.com/astral-sh/ruff/pull/9076))
- Fix handling of trailing target comment ([#​9051](https://togithub.com/astral-sh/ruff/pull/9051))
##### CLI
- Hide unsafe fix suggestions when explicitly disabled ([#​9095](https://togithub.com/astral-sh/ruff/pull/9095))
- Add SARIF support to `--output-format` ([#​9078](https://togithub.com/astral-sh/ruff/pull/9078))
##### Bug fixes
- Apply unnecessary index rule prior to enumerate rewrite ([#​9012](https://togithub.com/astral-sh/ruff/pull/9012))
- \[`flake8-err-msg`] Allow `EM` fixes even if `msg` variable is defined ([#​9059](https://togithub.com/astral-sh/ruff/pull/9059))
- \[`flake8-pie`] Prevent keyword arguments duplication ([#​8450](https://togithub.com/astral-sh/ruff/pull/8450))
- \[`flake8-pie`] Respect trailing comma in `unnecessary-dict-kwargs` (`PIE804`) ([#​9015](https://togithub.com/astral-sh/ruff/pull/9015))
- \[`flake8-raise`] Avoid removing parentheses on ctypes.WinError ([#​9027](https://togithub.com/astral-sh/ruff/pull/9027))
- \[`isort`] Avoid invalid combination of `force-sort-within-types` and `lines-between-types` ([#​9041](https://togithub.com/astral-sh/ruff/pull/9041))
- \[`isort`] Ensure that from-style imports are always ordered first in `__future__` ([#​9039](https://togithub.com/astral-sh/ruff/pull/9039))
- \[`pycodestyle`] Allow tab indentation before keyword ([#​9099](https://togithub.com/astral-sh/ruff/pull/9099))
- \[`pylint`] Ignore `@overrides` and `@overloads` for `too-many-positional` ([#​9000](https://togithub.com/astral-sh/ruff/pull/9000))
- \[`pyupgrade`] Enable `printf-string-formatting` fix with comments on right-hand side ([#​9037](https://togithub.com/astral-sh/ruff/pull/9037))
- \[`refurb`] Make `math-constant` (`FURB152`) rule more targeted ([#​9054](https://togithub.com/astral-sh/ruff/pull/9054))
- \[`refurb`] Support floating-point base in `redundant-log-base` (`FURB163`) ([#​9100](https://togithub.com/astral-sh/ruff/pull/9100))
- \[`ruff`] Detect `unused-asyncio-dangling-task` (`RUF006`) on unused assignments ([#​9060](https://togithub.com/astral-sh/ruff/pull/9060))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - "every weekend" in timezone Etc/UTC.
🚦 **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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/canonical/craft-application).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a Renovate-generated update upgrading lint/ruff from v0.1.7 to v0.1.11. The change passed CI checks, maintained 99.20% test coverage, received two approvals, and was successfully merged. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged Renovate dependency update upgrading lint/ruff from 0.1.7 to 0.1.11. CI tests passed with stable coverage, and the change was successfully integrated into the main branch. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #204 chore(deps): update dependency lint/ruff to v0.1.6 | craft-cli | merged | Merged automated Renovate update upgrading lint/ruff from v0.1.0 to v0.1.6. Passed CI, received two approvals, and changed one dependency version line. Codecov confirmed all modified lines remain covered. | |
| #137 chore(deps): update dependency lint/ruff to v0.1.7 | craft-store | merged | Merged an automated Renovate update upgrading lint/ruff from v0.1.1 to v0.1.7. Approved by two reviewers, passed CI, and merged with a single-line configuration change. | |
| #217 chore(deps): update dependency lint/ruff to v0.1.8 | craft-cli | merged | Merged automated dependency update for lint/ruff from v0.1.7 to v0.1.8. Generated by Renovate, approved by two reviewers, passed CI and Codecov checks, and successfully merged. | |
| #115 chore(deps): update dependency lint/ruff to v0.1.1 | craft-store | merged | Merged an automated dependency update from renovate[bot] upgrading lint/ruff from v0.1.0 to v0.1.1. Approved, passed CI, and successfully merged into main with a single line change. | |
| #155 chore(deps): update dependency lint/ruff to v0.1.15 | craft-store | merged | Automatically updated lint/ruff from v0.1.9 to v0.1.15 via Renovate bot. The PR passed CI checks, received two approvals, and was successfully merged. | |
| #107 chore(deps): update dependency lint/ruff to v0.1.0 | craft-store | merged | Merged automated dependency update for lint/ruff from v0.0.272 to v0.1.0. Generated by Renovate, approved by a reviewer, passed CI checks, and successfully merged without conflicts. | |
| #152 chore(deps): update dependency lint/ruff to v0.1.6 | craft-application | merged | Merged automated dependency update upgrading lint/ruff from v0.1.2 to v0.1.6. Processed by Renovate bot, passed CI checks, and maintained 99.27% test coverage per Codecov. | |
| #223 chore(deps): update dependency lint/ruff to v0.1.14 | craft-cli | merged | Merged automated dependency update for lint/ruff from v0.1.8 to v0.1.14 via Renovate bot. CI and code coverage checks passed, successfully integrating the update. | |
| #181 chore(deps): update dependency lint/ruff to v0.1.14 | craft-application | merged | Merged an automated dependency update upgrading lint/ruff from v0.1.11 to v0.1.14. The change passed CI, received approvals, and maintained 99.29% test coverage. | |
| #179 chore(deps): update dependency lint/ruff to v0.0.290 | craft-cli | merged | Merged an automated dependency update from Renovate bot, upgrading lint/ruff from v0.0.285 to v0.0.290. The PR passed CI checks, received approval, and was successfully merged into the main branch. |