mirror of https://github.com/astral-sh/ruff
90 Commits
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
5df8a959f5
|
Update mkdocs-material to 9.7.0 (Insiders now free) (#21797) | |
|
|
d8d1464d96
|
Update dependency ruff to v0.14.7 (#21709)
This PR contains the following updates: | Package | Change | Age | 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.14.6` -> `==0.14.7` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.14.7`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0147) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.14.6...0.14.7) Released on 2025-11-28. ##### Preview features - \[`flake8-bandit`] Handle string literal bindings in suspicious-url-open-usage (`S310`) ([#​21469](https://redirect.github.com/astral-sh/ruff/pull/21469)) - \[`pylint`] Fix `PLR1708` false positives on nested functions ([#​21177](https://redirect.github.com/astral-sh/ruff/pull/21177)) - \[`pylint`] Fix suppression for empty dict without tuple key annotation (`PLE1141`) ([#​21290](https://redirect.github.com/astral-sh/ruff/pull/21290)) - \[`ruff`] Add rule `RUF066` to detect unnecessary class properties ([#​21535](https://redirect.github.com/astral-sh/ruff/pull/21535)) - \[`ruff`] Catch more dummy variable uses (`RUF052`) ([#​19799](https://redirect.github.com/astral-sh/ruff/pull/19799)) ##### Bug fixes - \[server] Set severity for non-rule diagnostics ([#​21559](https://redirect.github.com/astral-sh/ruff/pull/21559)) - \[`flake8-implicit-str-concat`] Avoid invalid fix in (`ISC003`) ([#​21517](https://redirect.github.com/astral-sh/ruff/pull/21517)) - \[`parser`] Fix panic when parsing IPython escape command expressions ([#​21480](https://redirect.github.com/astral-sh/ruff/pull/21480)) ##### CLI - Show partial fixability indicator in statistics output ([#​21513](https://redirect.github.com/astral-sh/ruff/pull/21513)) ##### Contributors - [@​mikeleppane](https://redirect.github.com/mikeleppane) - [@​senekor](https://redirect.github.com/senekor) - [@​ShaharNaveh](https://redirect.github.com/ShaharNaveh) - [@​JumboBear](https://redirect.github.com/JumboBear) - [@​prakhar1144](https://redirect.github.com/prakhar1144) - [@​tsvikas](https://redirect.github.com/tsvikas) - [@​danparizher](https://redirect.github.com/danparizher) - [@​chirizxc](https://redirect.github.com/chirizxc) - [@​AlexWaygood](https://redirect.github.com/AlexWaygood) - [@​MichaReiser](https://redirect.github.com/MichaReiser) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
8327f262ff
|
Update dependency ruff to v0.14.6 (#21603)
This PR contains the following updates: | Package | Change | Age | 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.14.5` -> `==0.14.6` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.14.6`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0146) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.14.5...0.14.6) Released on 2025-11-21. ##### Preview features - \[`flake8-bandit`] Support new PySNMP API paths (`S508`, `S509`) ([#​21374](https://redirect.github.com/astral-sh/ruff/pull/21374)) ##### Bug fixes - Adjust own-line comment placement between branches ([#​21185](https://redirect.github.com/astral-sh/ruff/pull/21185)) - Avoid syntax error when formatting attribute expressions with outer parentheses, parenthesized value, and trailing comment on value ([#​20418](https://redirect.github.com/astral-sh/ruff/pull/20418)) - Fix panic when formatting comments in unary expressions ([#​21501](https://redirect.github.com/astral-sh/ruff/pull/21501)) - Respect `fmt: skip` for compound statements on a single line ([#​20633](https://redirect.github.com/astral-sh/ruff/pull/20633)) - \[`refurb`] Fix `FURB103` autofix ([#​21454](https://redirect.github.com/astral-sh/ruff/pull/21454)) - \[`ruff`] Fix false positive for complex conversion specifiers in `logging-eager-conversion` (`RUF065`) ([#​21464](https://redirect.github.com/astral-sh/ruff/pull/21464)) ##### Rule changes - \[`ruff`] Avoid false positive on `ClassVar` reassignment (`RUF012`) ([#​21478](https://redirect.github.com/astral-sh/ruff/pull/21478)) ##### CLI - Render hyperlinks for lint errors ([#​21514](https://redirect.github.com/astral-sh/ruff/pull/21514)) - Add a `ruff analyze` option to skip over imports in `TYPE_CHECKING` blocks ([#​21472](https://redirect.github.com/astral-sh/ruff/pull/21472)) ##### Documentation - Limit `eglot-format` hook to eglot-managed Python buffers ([#​21459](https://redirect.github.com/astral-sh/ruff/pull/21459)) - Mention `force-exclude` in "Configuration > Python file discovery" ([#​21500](https://redirect.github.com/astral-sh/ruff/pull/21500)) ##### Contributors - [@​ntBre](https://redirect.github.com/ntBre) - [@​dylwil3](https://redirect.github.com/dylwil3) - [@​gauthsvenkat](https://redirect.github.com/gauthsvenkat) - [@​MichaReiser](https://redirect.github.com/MichaReiser) - [@​thamer](https://redirect.github.com/thamer) - [@​Ruchir28](https://redirect.github.com/Ruchir28) - [@​thejcannon](https://redirect.github.com/thejcannon) - [@​danparizher](https://redirect.github.com/danparizher) - [@​chirizxc](https://redirect.github.com/chirizxc) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
1436e688cc
|
Update dependency ruff to v0.14.5 (#21489)
This PR contains the following updates: | Package | Change | Age | 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.14.4` -> `==0.14.5` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.14.5`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0145) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.14.4...0.14.5) Released on 2025-11-13. ##### Preview features - \[`flake8-simplify`] Apply `SIM113` when index variable is of type `int` ([#​21395](https://redirect.github.com/astral-sh/ruff/pull/21395)) - \[`pydoclint`] Fix false positive when Sphinx directives follow a "Raises" section (`DOC502`) ([#​20535](https://redirect.github.com/astral-sh/ruff/pull/20535)) - \[`pydoclint`] Support NumPy-style comma-separated parameters (`DOC102`) ([#​20972](https://redirect.github.com/astral-sh/ruff/pull/20972)) - \[`refurb`] Auto-fix annotated assignments (`FURB101`) ([#​21278](https://redirect.github.com/astral-sh/ruff/pull/21278)) - \[`ruff`] Ignore `str()` when not used for simple conversion (`RUF065`) ([#​21330](https://redirect.github.com/astral-sh/ruff/pull/21330)) ##### Bug fixes - Fix syntax error false positive on alternative `match` patterns ([#​21362](https://redirect.github.com/astral-sh/ruff/pull/21362)) - \[`flake8-simplify`] Fix false positive for iterable initializers with generator arguments (`SIM222`) ([#​21187](https://redirect.github.com/astral-sh/ruff/pull/21187)) - \[`pyupgrade`] Fix false positive on relative imports from local `.builtins` module (`UP029`) ([#​21309](https://redirect.github.com/astral-sh/ruff/pull/21309)) - \[`pyupgrade`] Consistently set the deprecated tag (`UP035`) ([#​21396](https://redirect.github.com/astral-sh/ruff/pull/21396)) ##### Rule changes - \[`refurb`] Detect empty f-strings (`FURB105`) ([#​21348](https://redirect.github.com/astral-sh/ruff/pull/21348)) ##### CLI - Add option to provide a reason to `--add-noqa` ([#​21294](https://redirect.github.com/astral-sh/ruff/pull/21294)) - Add upstream linter URL to `ruff linter --output-format=json` ([#​21316](https://redirect.github.com/astral-sh/ruff/pull/21316)) - Add color to `--help` ([#​21337](https://redirect.github.com/astral-sh/ruff/pull/21337)) ##### Documentation - Add a new "Opening a PR" section to the contribution guide ([#​21298](https://redirect.github.com/astral-sh/ruff/pull/21298)) - Added the PyScripter IDE to the list of "Who is using Ruff?" ([#​21402](https://redirect.github.com/astral-sh/ruff/pull/21402)) - Update PyCharm setup instructions ([#​21409](https://redirect.github.com/astral-sh/ruff/pull/21409)) - \[`flake8-annotations`] Add link to `allow-star-arg-any` option (`ANN401`) ([#​21326](https://redirect.github.com/astral-sh/ruff/pull/21326)) ##### Other changes - \[`configuration`] Improve error message when `line-length` exceeds `u16::MAX` ([#​21329](https://redirect.github.com/astral-sh/ruff/pull/21329)) ##### Contributors - [@​njhearp](https://redirect.github.com/njhearp) - [@​11happy](https://redirect.github.com/11happy) - [@​hugovk](https://redirect.github.com/hugovk) - [@​Gankra](https://redirect.github.com/Gankra) - [@​ntBre](https://redirect.github.com/ntBre) - [@​pyscripter](https://redirect.github.com/pyscripter) - [@​danparizher](https://redirect.github.com/danparizher) - [@​MichaReiser](https://redirect.github.com/MichaReiser) - [@​henryiii](https://redirect.github.com/henryiii) - [@​charliecloudberry](https://redirect.github.com/charliecloudberry) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
dd751e8d07
|
Update dependency ruff to v0.14.4 (#21353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
666dd5fef1
|
Update dependency ruff to v0.14.3 (#21239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
d846a0319a
|
Update dependency mdformat-mkdocs to v4.4.2 (#21088)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
c895b29f23
|
Update dependency ruff to v0.13.3 (#20707)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
e5faf6c268
|
Update dependency ruff to v0.13.2 (#20622)
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Change | Age | 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.13.1` -> `==0.13.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.13.2`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0132) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.13.1...0.13.2) Released on 2025-09-25. ##### Preview features - \[`flake8-async`] Implement `blocking-path-method` (`ASYNC240`) ([#​20264](https://redirect.github.com/astral-sh/ruff/pull/20264)) - \[`flake8-bugbear`] Implement `map-without-explicit-strict` (`B912`) ([#​20429](https://redirect.github.com/astral-sh/ruff/pull/20429)) - \[`flake8-bultins`] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (`A003`) ([#​20178](https://redirect.github.com/astral-sh/ruff/pull/20178)) - \[`ruff`] Implement `logging-eager-conversion` (`RUF065`) ([#​19942](https://redirect.github.com/astral-sh/ruff/pull/19942)) - Include `.pyw` files by default when linting and formatting ([#​20458](https://redirect.github.com/astral-sh/ruff/pull/20458)) ##### Bug fixes - Deduplicate input paths ([#​20105](https://redirect.github.com/astral-sh/ruff/pull/20105)) - \[`flake8-comprehensions`] Preserve trailing commas for single-element lists (`C409`) ([#​19571](https://redirect.github.com/astral-sh/ruff/pull/19571)) - \[`flake8-pyi`] Avoid syntax error from conflict with `PIE790` (`PYI021`) ([#​20010](https://redirect.github.com/astral-sh/ruff/pull/20010)) - \[`flake8-simplify`] Correct fix for positive `maxsplit` without separator (`SIM905`) ([#​20056](https://redirect.github.com/astral-sh/ruff/pull/20056)) - \[`pyupgrade`] Fix `UP008` not to apply when `__class__` is a local variable ([#​20497](https://redirect.github.com/astral-sh/ruff/pull/20497)) - \[`ruff`] Fix `B004` to skip invalid `hasattr`/`getattr` calls ([#​20486](https://redirect.github.com/astral-sh/ruff/pull/20486)) - \[`ruff`] Replace `-nan` with `nan` when using the value to construct a `Decimal` (`FURB164` ) ([#​20391](https://redirect.github.com/astral-sh/ruff/pull/20391)) ##### Documentation - Add 'Finding ways to help' to CONTRIBUTING.md ([#​20567](https://redirect.github.com/astral-sh/ruff/pull/20567)) - Update import path to `ruff-wasm-web` ([#​20539](https://redirect.github.com/astral-sh/ruff/pull/20539)) - \[`flake8-bandit`] Clarify the supported hashing functions (`S324`) ([#​20534](https://redirect.github.com/astral-sh/ruff/pull/20534)) ##### Other changes - \[`playground`] Allow hover quick fixes to appear for overlapping diagnostics ([#​20527](https://redirect.github.com/astral-sh/ruff/pull/20527)) - \[`playground`] Fix non‑BMP code point handling in quick fixes and markers ([#​20526](https://redirect.github.com/astral-sh/ruff/pull/20526)) ##### Contributors - [@​BurntSushi](https://redirect.github.com/BurntSushi) - [@​mtshiba](https://redirect.github.com/mtshiba) - [@​second-ed](https://redirect.github.com/second-ed) - [@​danparizher](https://redirect.github.com/danparizher) - [@​ShikChen](https://redirect.github.com/ShikChen) - [@​PieterCK](https://redirect.github.com/PieterCK) - [@​GDYendell](https://redirect.github.com/GDYendell) - [@​RazerM](https://redirect.github.com/RazerM) - [@​TaKO8Ki](https://redirect.github.com/TaKO8Ki) - [@​amyreese](https://redirect.github.com/amyreese) - [@​ntbre](https://redirect.github.com/ntBre) - [@​MichaReiser](https://redirect.github.com/MichaReiser) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
65e805de62
|
Update dependency PyYAML to v6.0.3 (#20621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
d12324f06e
|
Update dependency ruff to v0.13.1 (#20498) | |
|
|
326c878adb
|
Update dependency ruff to v0.13.0 (#20396) | |
|
|
f893b19930
|
Update dependency ruff to v0.12.12 (#20293)
This PR contains the following updates: | Package | Change | Age | 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.12.11` -> `==0.12.12` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.12`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01212) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.11...0.12.12) ##### Preview features - Show fixes by default ([#​19919](https://redirect.github.com/astral-sh/ruff/pull/19919)) - \[`airflow`] Convert `DatasetOrTimeSchedule(datasets=...)` to `AssetOrTimeSchedule(assets=...)` (`AIR311`) ([#​20202](https://redirect.github.com/astral-sh/ruff/pull/20202)) - \[`airflow`] Improve the `AIR002` error message ([#​20173](https://redirect.github.com/astral-sh/ruff/pull/20173)) - \[`airflow`] Move `airflow.operators.postgres_operator.Mapping` from `AIR302` to `AIR301` ([#​20172](https://redirect.github.com/astral-sh/ruff/pull/20172)) - \[`flake8-async`] Implement `blocking-input` rule (`ASYNC250`) ([#​20122](https://redirect.github.com/astral-sh/ruff/pull/20122)) - \[`flake8-use-pathlib`] Make `PTH119` and `PTH120` fixes unsafe because they can change behavior ([#​20118](https://redirect.github.com/astral-sh/ruff/pull/20118)) - \[`pylint`] Add U+061C to `PLE2502` ([#​20106](https://redirect.github.com/astral-sh/ruff/pull/20106)) - \[`ruff`] Fix false negative for empty f-strings in `deque` calls (`RUF037`) ([#​20109](https://redirect.github.com/astral-sh/ruff/pull/20109)) ##### Bug fixes - Less confidently mark f-strings as empty when inferring truthiness ([#​20152](https://redirect.github.com/astral-sh/ruff/pull/20152)) - \[`fastapi`] Fix false positive for paths with spaces around parameters (`FAST003`) ([#​20077](https://redirect.github.com/astral-sh/ruff/pull/20077)) - \[`flake8-comprehensions`] Skip `C417` when lambda contains `yield`/`yield from` ([#​20201](https://redirect.github.com/astral-sh/ruff/pull/20201)) - \[`perflint`] Handle tuples in dictionary comprehensions (`PERF403`) ([#​19934](https://redirect.github.com/astral-sh/ruff/pull/19934)) ##### Rule changes - \[`pycodestyle`] Preserve return type annotation for `ParamSpec` (`E731`) ([#​20108](https://redirect.github.com/astral-sh/ruff/pull/20108)) ##### Documentation - Add fix safety sections to docs ([#​17490](https://redirect.github.com/astral-sh/ruff/pull/17490),[#​17499](https://redirect.github.com/astral-sh/ruff/pull/17499)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
22ca5dd890
|
Update dependency mdformat-mkdocs to v4.4.1 (#20299)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [mdformat-mkdocs](https://redirect.github.com/kyleking/mdformat-mkdocs) ([changelog](https://redirect.github.com/kyleking/mdformat-mkdocs/releases)) | `==4.3.0` -> `==4.4.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>kyleking/mdformat-mkdocs (mdformat-mkdocs)</summary> ### [`v4.4.1`](https://redirect.github.com/KyleKing/mdformat-mkdocs/releases/tag/v4.4.1) [Compare Source](https://redirect.github.com/kyleking/mdformat-mkdocs/compare/v4.4.0...v4.4.1) ##### What's Changed - fix([#​56](https://redirect.github.com/kyleking/mdformat-mkdocs/issues/56)): narrowly scope escape\_deflist by [@​KyleKing](https://redirect.github.com/KyleKing) in [KyleKing#57](https://redirect.github.com/KyleKing/mdformat-mkdocs/pull/57) **Full Changelog**: <https://github.com/KyleKing/mdformat-mkdocs/compare/v4.4.0...v4.4.1> ### [`v4.4.0`](https://redirect.github.com/KyleKing/mdformat-mkdocs/releases/tag/v4.4.0) [Compare Source](https://redirect.github.com/kyleking/mdformat-mkdocs/compare/v4.3.0...v4.4.0) ##### What's Changed - fix([#​54](https://redirect.github.com/kyleking/mdformat-mkdocs/issues/54)): add 4-space indented deflists by [@​KyleKing](https://redirect.github.com/KyleKing) in [KyleKing#55](https://redirect.github.com/KyleKing/mdformat-mkdocs/pull/55) **Full Changelog**: <https://github.com/KyleKing/mdformat-mkdocs/compare/v4.3.0...v4.4.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
c71ce006c4
|
Update dependency ruff to v0.12.11 (#20184)
This PR contains the following updates: | Package | Change | Age | 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.12.10` -> `==0.12.11` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.11`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01211) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.10...0.12.11) ##### Preview features - \[`airflow`] Extend `AIR311` and `AIR312` rules ([#​20082](https://redirect.github.com/astral-sh/ruff/pull/20082)) - \[`airflow`] Replace wrong path `airflow.io.storage` with `airflow.io.store` (`AIR311`) ([#​20081](https://redirect.github.com/astral-sh/ruff/pull/20081)) - \[`flake8-async`] Implement `blocking-http-call-httpx-in-async-function` (`ASYNC212`) ([#​20091](https://redirect.github.com/astral-sh/ruff/pull/20091)) - \[`flake8-logging-format`] Add auto-fix for f-string logging calls (`G004`) ([#​19303](https://redirect.github.com/astral-sh/ruff/pull/19303)) - \[`flake8-use-pathlib`] Add autofix for `PTH211` ([#​20009](https://redirect.github.com/astral-sh/ruff/pull/20009)) - \[`flake8-use-pathlib`] Make `PTH100` fix unsafe because it can change behavior ([#​20100](https://redirect.github.com/astral-sh/ruff/pull/20100)) ##### Bug fixes - \[`pyflakes`, `pylint`] Fix false positives caused by `__class__` cell handling (`F841`, `PLE0117`) ([#​20048](https://redirect.github.com/astral-sh/ruff/pull/20048)) - \[`pyflakes`] Fix `allowed-unused-imports` matching for top-level modules (`F401`) ([#​20115](https://redirect.github.com/astral-sh/ruff/pull/20115)) - \[`ruff`] Fix false positive for t-strings in `default-factory-kwarg` (`RUF026`) ([#​20032](https://redirect.github.com/astral-sh/ruff/pull/20032)) - \[`ruff`] Preserve relative whitespace in multi-line expressions (`RUF033`) ([#​19647](https://redirect.github.com/astral-sh/ruff/pull/19647)) ##### Rule changes - \[`ruff`] Handle empty t-strings in `unnecessary-empty-iterable-within-deque-call` (`RUF037`) ([#​20045](https://redirect.github.com/astral-sh/ruff/pull/20045)) ##### Documentation - Fix incorrect `D413` links in docstrings convention FAQ ([#​20089](https://redirect.github.com/astral-sh/ruff/pull/20089)) - \[`flake8-use-pathlib`] Update links to the table showing the correspondence between `os` and `pathlib` ([#​20103](https://redirect.github.com/astral-sh/ruff/pull/20103)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
862d2d0687
|
Update dependency ruff to v0.12.10 (#20062) | |
|
|
76c933d10e
|
Update dependency ruff to v0.12.9 (#19954)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
618692cfd2
|
Update dependency ruff to v0.12.8 (#19856)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
74376375e4
|
Update dependency ruff to v0.12.7 (#19718)
This PR contains the following updates: | Package | Change | Age | 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.12.5` -> `==0.12.7` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.7`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0127) This is a follow-up release to 0.12.6. Because of an issue in the package metadata, 0.12.6 failed to publish fully to PyPI and has been yanked. Similarly, there is no GitHub release or Git tag for 0.12.6. The contents of the 0.12.7 release are identical to 0.12.6, except for the updated metadata. ### [`v0.12.6`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0126) ##### Preview features - \[`flake8-commas`] Add support for trailing comma checks in type parameter lists (`COM812`, `COM819`) ([#​19390](https://redirect.github.com/astral-sh/ruff/pull/19390)) - \[`pylint`] Implement auto-fix for `missing-maxsplit-arg` (`PLC0207`) ([#​19387](https://redirect.github.com/astral-sh/ruff/pull/19387)) - \[`ruff`] Offer fixes for `RUF039` in more cases ([#​19065](https://redirect.github.com/astral-sh/ruff/pull/19065)) ##### Bug fixes - Support `.pyi` files in ruff analyze graph ([#​19611](https://redirect.github.com/astral-sh/ruff/pull/19611)) - \[`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) ([#​19399](https://redirect.github.com/astral-sh/ruff/pull/19399)) - \[`perflint`] Ignore rule if target is `global` or `nonlocal` (`PERF401`) ([#​19539](https://redirect.github.com/astral-sh/ruff/pull/19539)) - \[`pyupgrade`] Fix `UP030` to avoid modifying double curly braces in format strings ([#​19378](https://redirect.github.com/astral-sh/ruff/pull/19378)) - \[`refurb`] Ignore decorated functions for `FURB118` ([#​19339](https://redirect.github.com/astral-sh/ruff/pull/19339)) - \[`refurb`] Mark `int` and `bool` cases for `Decimal.from_float` as safe fixes (`FURB164`) ([#​19468](https://redirect.github.com/astral-sh/ruff/pull/19468)) - \[`ruff`] Fix `RUF033` for named default expressions ([#​19115](https://redirect.github.com/astral-sh/ruff/pull/19115)) ##### Rule changes - \[`flake8-blind-except`] Change `BLE001` to permit `logging.critical(..., exc_info=True)` ([#​19520](https://redirect.github.com/astral-sh/ruff/pull/19520)) ##### Performance - Add support for specifying minimum dots in detected string imports ([#​19538](https://redirect.github.com/astral-sh/ruff/pull/19538)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
ef3a195f28
|
Update dependency ruff to v0.12.5 (#19584) | |
|
|
f063c0e874
|
Update dependency ruff to v0.12.4 (#19442)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
3ed3852c38
|
Update dependency ruff to v0.12.3 (#19313)
This PR contains the following updates: | Package | Change | Age | 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.12.2` -> `==0.12.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.3`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0123) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.2...0.12.3) ##### Preview features - \[`flake8-bugbear`] Support non-context-manager calls in `B017` ([#​19063](https://redirect.github.com/astral-sh/ruff/pull/19063)) - \[`flake8-use-pathlib`] Add autofixes for `PTH100`, `PTH106`, `PTH107`, `PTH108`, `PTH110`, `PTH111`, `PTH112`, `PTH113`, `PTH114`, `PTH115`, `PTH117`, `PTH119`, `PTH120` ([#​19213](https://redirect.github.com/astral-sh/ruff/pull/19213)) - \[`flake8-use-pathlib`] Add autofixes for `PTH203`, `PTH204`, `PTH205` ([#​18922](https://redirect.github.com/astral-sh/ruff/pull/18922)) ##### Bug fixes - \[`flake8-return`] Fix false-positive for variables used inside nested functions in `RET504` ([#​18433](https://redirect.github.com/astral-sh/ruff/pull/18433)) - Treat form feed as valid whitespace before a line continuation ([#​19220](https://redirect.github.com/astral-sh/ruff/pull/19220)) - \[`flake8-type-checking`] Fix syntax error introduced by fix (`TC008`) ([#​19150](https://redirect.github.com/astral-sh/ruff/pull/19150)) - \[`pyupgrade`] Keyword arguments in `super` should suppress the `UP008` fix ([#​19131](https://redirect.github.com/astral-sh/ruff/pull/19131)) ##### Documentation - \[`flake8-pyi`] Make example error out-of-the-box (`PYI007`, `PYI008`) ([#​19103](https://redirect.github.com/astral-sh/ruff/pull/19103)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM116`) ([#​19111](https://redirect.github.com/astral-sh/ruff/pull/19111)) - \[`flake8-type-checking`] Make example error out-of-the-box (`TC001`) ([#​19151](https://redirect.github.com/astral-sh/ruff/pull/19151)) - \[`flake8-use-pathlib`] Make example error out-of-the-box (`PTH210`) ([#​19189](https://redirect.github.com/astral-sh/ruff/pull/19189)) - \[`pycodestyle`] Make example error out-of-the-box (`E272`) ([#​19191](https://redirect.github.com/astral-sh/ruff/pull/19191)) - \[`pycodestyle`] Make example not raise unnecessary `SyntaxError` (`E114`) ([#​19190](https://redirect.github.com/astral-sh/ruff/pull/19190)) - \[`pydoclint`] Make example error out-of-the-box (`DOC501`) ([#​19218](https://redirect.github.com/astral-sh/ruff/pull/19218)) - \[`pylint`, `pyupgrade`] Fix syntax errors in examples (`PLW1501`, `UP028`) ([#​19127](https://redirect.github.com/astral-sh/ruff/pull/19127)) - \[`pylint`] Update `missing-maxsplit-arg` docs and error to suggest proper usage (`PLC0207`) ([#​18949](https://redirect.github.com/astral-sh/ruff/pull/18949)) - \[`flake8-bandit`] Make example error out-of-the-box (`S412`) ([#​19241](https://redirect.github.com/astral-sh/ruff/pull/19241)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
22d809b8ce
|
Update dependency ruff to v0.12.2 (#19160)
This PR contains the following updates: | Package | Change | Age | 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.12.1` -> `==0.12.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.2`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0122) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.1...0.12.2) ##### Preview features - \[`flake8-pyi`] Expand `Optional[A]` to `A | None` (`PYI016`) ([#​18572](https://redirect.github.com/astral-sh/ruff/pull/18572)) - \[`pyupgrade`] Mark `UP008` fix safe if no comments are in range ([#​18683](https://redirect.github.com/astral-sh/ruff/pull/18683)) ##### Bug fixes - \[`flake8-comprehensions`] Fix `C420` to prepend whitespace when needed ([#​18616](https://redirect.github.com/astral-sh/ruff/pull/18616)) - \[`perflint`] Fix `PERF403` panic on attribute or subscription loop variable ([#​19042](https://redirect.github.com/astral-sh/ruff/pull/19042)) - \[`pydocstyle`] Fix `D413` infinite loop for parenthesized docstring ([#​18930](https://redirect.github.com/astral-sh/ruff/pull/18930)) - \[`pylint`] Fix `PLW0108` autofix introducing a syntax error when the lambda's body contains an assignment expression ([#​18678](https://redirect.github.com/astral-sh/ruff/pull/18678)) - \[`refurb`] Fix false positive on empty tuples (`FURB168`) ([#​19058](https://redirect.github.com/astral-sh/ruff/pull/19058)) - \[`ruff`] Allow more `field` calls from `attrs` (`RUF009`) ([#​19021](https://redirect.github.com/astral-sh/ruff/pull/19021)) - \[`ruff`] Fix syntax error introduced for an empty string followed by a u-prefixed string (`UP025`) ([#​18899](https://redirect.github.com/astral-sh/ruff/pull/18899)) ##### Rule changes - \[`flake8-executable`] Allow `uvx` in shebang line (`EXE003`) ([#​18967](https://redirect.github.com/astral-sh/ruff/pull/18967)) - \[`pandas`] Avoid flagging `PD002` if `pandas` is not imported ([#​18963](https://redirect.github.com/astral-sh/ruff/pull/18963)) - \[`pyupgrade`] Avoid PEP-604 unions with `typing.NamedTuple` (`UP007`, `UP045`) ([#​18682](https://redirect.github.com/astral-sh/ruff/pull/18682)) ##### Documentation - Document link between `import-outside-top-level (PLC0415)` and `lint.flake8-tidy-imports.banned-module-level-imports` ([#​18733](https://redirect.github.com/astral-sh/ruff/pull/18733)) - Fix description of the `format.skip-magic-trailing-comma` example ([#​19095](https://redirect.github.com/astral-sh/ruff/pull/19095)) - \[`airflow`] Make `AIR302` example error out-of-the-box ([#​18988](https://redirect.github.com/astral-sh/ruff/pull/18988)) - \[`airflow`] Make `AIR312` example error out-of-the-box ([#​18989](https://redirect.github.com/astral-sh/ruff/pull/18989)) - \[`flake8-annotations`] Make `ANN401` example error out-of-the-box ([#​18974](https://redirect.github.com/astral-sh/ruff/pull/18974)) - \[`flake8-async`] Make `ASYNC100` example error out-of-the-box ([#​18993](https://redirect.github.com/astral-sh/ruff/pull/18993)) - \[`flake8-async`] Make `ASYNC105` example error out-of-the-box ([#​19002](https://redirect.github.com/astral-sh/ruff/pull/19002)) - \[`flake8-async`] Make `ASYNC110` example error out-of-the-box ([#​18975](https://redirect.github.com/astral-sh/ruff/pull/18975)) - \[`flake8-async`] Make `ASYNC210` example error out-of-the-box ([#​18977](https://redirect.github.com/astral-sh/ruff/pull/18977)) - \[`flake8-async`] Make `ASYNC220`, `ASYNC221`, and `ASYNC222` examples error out-of-the-box ([#​18978](https://redirect.github.com/astral-sh/ruff/pull/18978)) - \[`flake8-async`] Make `ASYNC251` example error out-of-the-box ([#​18990](https://redirect.github.com/astral-sh/ruff/pull/18990)) - \[`flake8-bandit`] Make `S201` example error out-of-the-box ([#​19017](https://redirect.github.com/astral-sh/ruff/pull/19017)) - \[`flake8-bandit`] Make `S604` and `S609` examples error out-of-the-box ([#​19049](https://redirect.github.com/astral-sh/ruff/pull/19049)) - \[`flake8-bugbear`] Make `B028` example error out-of-the-box ([#​19054](https://redirect.github.com/astral-sh/ruff/pull/19054)) - \[`flake8-bugbear`] Make `B911` example error out-of-the-box ([#​19051](https://redirect.github.com/astral-sh/ruff/pull/19051)) - \[`flake8-datetimez`] Make `DTZ011` example error out-of-the-box ([#​19055](https://redirect.github.com/astral-sh/ruff/pull/19055)) - \[`flake8-datetimez`] Make `DTZ901` example error out-of-the-box ([#​19056](https://redirect.github.com/astral-sh/ruff/pull/19056)) - \[`flake8-pyi`] Make `PYI032` example error out-of-the-box ([#​19061](https://redirect.github.com/astral-sh/ruff/pull/19061)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI014`, `PYI015`) ([#​19097](https://redirect.github.com/astral-sh/ruff/pull/19097)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI042`) ([#​19101](https://redirect.github.com/astral-sh/ruff/pull/19101)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI059`) ([#​19080](https://redirect.github.com/astral-sh/ruff/pull/19080)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI062`) ([#​19079](https://redirect.github.com/astral-sh/ruff/pull/19079)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT023`) ([#​19104](https://redirect.github.com/astral-sh/ruff/pull/19104)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT030`) ([#​19105](https://redirect.github.com/astral-sh/ruff/pull/19105)) - \[`flake8-quotes`] Make example error out-of-the-box (`Q003`) ([#​19106](https://redirect.github.com/astral-sh/ruff/pull/19106)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM110`) ([#​19113](https://redirect.github.com/astral-sh/ruff/pull/19113)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM113`) ([#​19109](https://redirect.github.com/astral-sh/ruff/pull/19109)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM401`) ([#​19110](https://redirect.github.com/astral-sh/ruff/pull/19110)) - \[`pyflakes`] Fix backslash in docs (`F621`) ([#​19098](https://redirect.github.com/astral-sh/ruff/pull/19098)) - \[`pylint`] Fix `PLC0415` example ([#​18970](https://redirect.github.com/astral-sh/ruff/pull/18970)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
9469a982cc
|
Update dependency ruff to v0.12.1 (#19032)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.12.0` -> `==0.12.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.1`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0121) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.0...0.12.1) ##### Preview features - \[`flake8-errmsg`] Extend `EM101` to support byte strings ([#​18867](https://redirect.github.com/astral-sh/ruff/pull/18867)) - \[`flake8-use-pathlib`] Add autofix for `PTH202` ([#​18763](https://redirect.github.com/astral-sh/ruff/pull/18763)) - \[`pygrep-hooks`] Add `AsyncMock` methods to `invalid-mock-access` (`PGH005`) ([#​18547](https://redirect.github.com/astral-sh/ruff/pull/18547)) - \[`pylint`] Ignore `__init__.py` files in (`PLC0414`) ([#​18400](https://redirect.github.com/astral-sh/ruff/pull/18400)) - \[`ruff`] Trigger `RUF037` for empty string and byte strings ([#​18862](https://redirect.github.com/astral-sh/ruff/pull/18862)) - \[formatter] Fix missing blank lines before decorated classes in `.pyi` files ([#​18888](https://redirect.github.com/astral-sh/ruff/pull/18888)) ##### Bug fixes - Avoid generating diagnostics with per-file ignores ([#​18801](https://redirect.github.com/astral-sh/ruff/pull/18801)) - Handle parenthesized arguments in `remove_argument` ([#​18805](https://redirect.github.com/astral-sh/ruff/pull/18805)) - \[`flake8-logging`] Avoid false positive for `exc_info=True` outside `logger.exception` (`LOG014`) ([#​18737](https://redirect.github.com/astral-sh/ruff/pull/18737)) - \[`flake8-pytest-style`] Enforce `pytest` import for decorators ([#​18779](https://redirect.github.com/astral-sh/ruff/pull/18779)) - \[`flake8-pytest-style`] Mark autofix for `PT001` and `PT023` as unsafe if there's comments in the decorator ([#​18792](https://redirect.github.com/astral-sh/ruff/pull/18792)) - \[`flake8-pytest-style`] `PT001`/`PT023` fix makes syntax error on parenthesized decorator ([#​18782](https://redirect.github.com/astral-sh/ruff/pull/18782)) - \[`flake8-raise`] Make fix unsafe if it deletes comments (`RSE102`) ([#​18788](https://redirect.github.com/astral-sh/ruff/pull/18788)) - \[`flake8-simplify`] Fix `SIM911` autofix creating a syntax error ([#​18793](https://redirect.github.com/astral-sh/ruff/pull/18793)) - \[`flake8-simplify`] Fix false negatives for shadowed bindings (`SIM910`, `SIM911`) ([#​18794](https://redirect.github.com/astral-sh/ruff/pull/18794)) - \[`flake8-simplify`] Preserve original behavior for `except ()` and bare `except` (`SIM105`) ([#​18213](https://redirect.github.com/astral-sh/ruff/pull/18213)) - \[`flake8-pyi`] Fix `PYI041`'s fix causing `TypeError` with `None | None | ...` ([#​18637](https://redirect.github.com/astral-sh/ruff/pull/18637)) - \[`perflint`] Fix `PERF101` autofix creating a syntax error and mark autofix as unsafe if there are comments in the `list` call expr ([#​18803](https://redirect.github.com/astral-sh/ruff/pull/18803)) - \[`perflint`] Fix false negative in `PERF401` ([#​18866](https://redirect.github.com/astral-sh/ruff/pull/18866)) - \[`pylint`] Avoid flattening nested `min`/`max` when outer call has single argument (`PLW3301`) ([#​16885](https://redirect.github.com/astral-sh/ruff/pull/16885)) - \[`pylint`] Fix `PLC2801` autofix creating a syntax error ([#​18857](https://redirect.github.com/astral-sh/ruff/pull/18857)) - \[`pylint`] Mark `PLE0241` autofix as unsafe if there's comments in the base classes ([#​18832](https://redirect.github.com/astral-sh/ruff/pull/18832)) - \[`pylint`] Suppress `PLE2510`/`PLE2512`/`PLE2513`/`PLE2514`/`PLE2515` autofix if the text contains an odd number of backslashes ([#​18856](https://redirect.github.com/astral-sh/ruff/pull/18856)) - \[`refurb`] Detect more exotic float literals in `FURB164` ([#​18925](https://redirect.github.com/astral-sh/ruff/pull/18925)) - \[`refurb`] Fix `FURB163` autofix creating a syntax error for `yield` expressions ([#​18756](https://redirect.github.com/astral-sh/ruff/pull/18756)) - \[`refurb`] Mark `FURB129` autofix as unsafe if there's comments in the `readlines` call ([#​18858](https://redirect.github.com/astral-sh/ruff/pull/18858)) - \[`ruff`] Fix false positives and negatives in `RUF010` ([#​18690](https://redirect.github.com/astral-sh/ruff/pull/18690)) - Fix casing of `analyze.direction` variant names ([#​18892](https://redirect.github.com/astral-sh/ruff/pull/18892)) ##### Rule changes - Fix f-string interpolation escaping in generated fixes ([#​18882](https://redirect.github.com/astral-sh/ruff/pull/18882)) - \[`flake8-return`] Mark `RET501` fix unsafe if comments are inside ([#​18780](https://redirect.github.com/astral-sh/ruff/pull/18780)) - \[`flake8-async`] Fix detection for large integer sleep durations in `ASYNC116` rule ([#​18767](https://redirect.github.com/astral-sh/ruff/pull/18767)) - \[`flake8-async`] Mark autofix for `ASYNC115` as unsafe if the call expression contains comments ([#​18753](https://redirect.github.com/astral-sh/ruff/pull/18753)) - \[`flake8-bugbear`] Mark autofix for `B004` as unsafe if the `hasattr` call expr contains comments ([#​18755](https://redirect.github.com/astral-sh/ruff/pull/18755)) - \[`flake8-comprehension`] Mark autofix for `C420` as unsafe if there's comments inside the dict comprehension ([#​18768](https://redirect.github.com/astral-sh/ruff/pull/18768)) - \[`flake8-comprehensions`] Handle template strings for comprehension fixes ([#​18710](https://redirect.github.com/astral-sh/ruff/pull/18710)) - \[`flake8-future-annotations`] Add autofix (`FA100`) ([#​18903](https://redirect.github.com/astral-sh/ruff/pull/18903)) - \[`pyflakes`] Mark `F504`/`F522`/`F523` autofix as unsafe if there's a call with side effect ([#​18839](https://redirect.github.com/astral-sh/ruff/pull/18839)) - \[`pylint`] Allow fix with comments and document performance implications (`PLW3301`) ([#​18936](https://redirect.github.com/astral-sh/ruff/pull/18936)) - \[`pylint`] Detect more exotic `NaN` literals in `PLW0177` ([#​18630](https://redirect.github.com/astral-sh/ruff/pull/18630)) - \[`pylint`] Fix `PLC1802` autofix creating a syntax error and mark autofix as unsafe if there's comments in the `len` call ([#​18836](https://redirect.github.com/astral-sh/ruff/pull/18836)) - \[`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) ([#​18633](https://redirect.github.com/astral-sh/ruff/pull/18633)) - \[`ruff`] Add lint rule `RUF064` for calling `chmod` with non-octal integers ([#​18541](https://redirect.github.com/astral-sh/ruff/pull/18541)) - \[`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) ([#​18233](https://redirect.github.com/astral-sh/ruff/pull/18233)) - \[`ruff`] Frozen `dataclass` default should be valid (`RUF009`) ([#​18735](https://redirect.github.com/astral-sh/ruff/pull/18735)) ##### Server - Consider virtual path for various server actions ([#​18910](https://redirect.github.com/astral-sh/ruff/pull/18910)) ##### Documentation - Add fix safety sections ([#​18940](https://redirect.github.com/astral-sh/ruff/pull/18940),[#​18841](https://redirect.github.com/astral-sh/ruff/pull/18841),[#​18802](https://redirect.github.com/astral-sh/ruff/pull/18802),[#​18837](https://redirect.github.com/astral-sh/ruff/pull/18837),[#​18800](https://redirect.github.com/astral-sh/ruff/pull/18800),[#​18415](https://redirect.github.com/astral-sh/ruff/pull/18415),[#​18853](https://redirect.github.com/astral-sh/ruff/pull/18853),[#​18842](https://redirect.github.com/astral-sh/ruff/pull/18842)) - Use updated pre-commit id ([#​18718](https://redirect.github.com/astral-sh/ruff/pull/18718)) - \[`perflint`] Small docs improvement to `PERF401` ([#​18786](https://redirect.github.com/astral-sh/ruff/pull/18786)) - \[`pyupgrade`]: Use `super()`, not `__super__` in error messages (`UP008`) ([#​18743](https://redirect.github.com/astral-sh/ruff/pull/18743)) - \[`flake8-pie`] Small docs fix to `PIE794` ([#​18829](https://redirect.github.com/astral-sh/ruff/pull/18829)) - \[`flake8-pyi`] Correct `collections-named-tuple` example to use PascalCase assignment ([#​16884](https://redirect.github.com/astral-sh/ruff/pull/16884)) - \[`flake8-pie`] Add note on type checking benefits to `unnecessary-dict-kwargs` (`PIE804`) ([#​18666](https://redirect.github.com/astral-sh/ruff/pull/18666)) - \[`pycodestyle`] Clarify PEP 8 relationship to `whitespace-around-operator` rules ([#​18870](https://redirect.github.com/astral-sh/ruff/pull/18870)) ##### Other changes - Disallow newlines in format specifiers of single quoted f- or t-strings ([#​18708](https://redirect.github.com/astral-sh/ruff/pull/18708)) - \[`flake8-logging`] Add fix safety section to `LOG002` ([#​18840](https://redirect.github.com/astral-sh/ruff/pull/18840)) - \[`pyupgrade`] Add fix safety section to `UP010` ([#​18838](https://redirect.github.com/astral-sh/ruff/pull/18838)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
55a2ff91c7
|
Update dependency ruff to v0.12.0 (#18790)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
6cefbb6b38
|
Update dependency ruff to v0.11.13 (#18580) | |
|
|
643c845a47
|
Update dependency mdformat-mkdocs to v4.3.0 (#18421) | |
|
|
c4015edf48
|
Update dependency ruff to v0.11.12 (#18417) | |
|
|
cc59ff8aad
|
Update dependency ruff to v0.11.11 (#18301) | |
|
|
6c0a59ea78
|
Fix insider docs requirement syntax (#18265)
Attempting to fix the `mkdocs` workflow (maybe `uv` is more forgiving than `pip` for the syntax in `requirements.txt`?) |
|
|
|
f9ca6eb63e
|
Fix rendering of admonition in docs (#18163) | |
|
|
ab96adbcd1
|
Update dependency ruff to v0.11.10 (#18171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
99555b775c
|
Update dependency ruff to v0.11.9 (#18024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
3b15af6d4f
|
Update dependency ruff to v0.11.8 (#17839) | |
|
|
b09f00a4ef
|
Update dependency ruff to v0.11.7 (#17668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
c077b109ce
|
Update dependency ruff to v0.11.6 (#17516) | |
|
|
b02a42d99a
|
Update dependency ruff to v0.9.10 (#16593)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.9.9` -> `==0.9.10` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.9.10`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0910) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.9...0.9.10) ##### Preview features - \[`ruff`] Add new rule `RUF059`: Unused unpacked assignment ([#​16449](https://redirect.github.com/astral-sh/ruff/pull/16449)) - \[`syntax-errors`] Detect assignment expressions before Python 3.8 ([#​16383](https://redirect.github.com/astral-sh/ruff/pull/16383)) - \[`syntax-errors`] Named expressions in decorators before Python 3.9 ([#​16386](https://redirect.github.com/astral-sh/ruff/pull/16386)) - \[`syntax-errors`] Parenthesized keyword argument names after Python 3.8 ([#​16482](https://redirect.github.com/astral-sh/ruff/pull/16482)) - \[`syntax-errors`] Positional-only parameters before Python 3.8 ([#​16481](https://redirect.github.com/astral-sh/ruff/pull/16481)) - \[`syntax-errors`] Tuple unpacking in `return` and `yield` before Python 3.8 ([#​16485](https://redirect.github.com/astral-sh/ruff/pull/16485)) - \[`syntax-errors`] Type parameter defaults before Python 3.13 ([#​16447](https://redirect.github.com/astral-sh/ruff/pull/16447)) - \[`syntax-errors`] Type parameter lists before Python 3.12 ([#​16479](https://redirect.github.com/astral-sh/ruff/pull/16479)) - \[`syntax-errors`] `except*` before Python 3.11 ([#​16446](https://redirect.github.com/astral-sh/ruff/pull/16446)) - \[`syntax-errors`] `type` statements before Python 3.12 ([#​16478](https://redirect.github.com/astral-sh/ruff/pull/16478)) ##### Bug fixes - Escape template filenames in glob patterns in configuration ([#​16407](https://redirect.github.com/astral-sh/ruff/pull/16407)) - \[`flake8-simplify`] Exempt unittest context methods for `SIM115` rule ([#​16439](https://redirect.github.com/astral-sh/ruff/pull/16439)) - Formatter: Fix syntax error location in notebooks ([#​16499](https://redirect.github.com/astral-sh/ruff/pull/16499)) - \[`pyupgrade`] Do not offer fix when at least one target is `global`/`nonlocal` (`UP028`) ([#​16451](https://redirect.github.com/astral-sh/ruff/pull/16451)) - \[`flake8-builtins`] Ignore variables matching module attribute names (`A001`) ([#​16454](https://redirect.github.com/astral-sh/ruff/pull/16454)) - \[`pylint`] Convert `code` keyword argument to a positional argument in fix for (`PLR1722`) ([#​16424](https://redirect.github.com/astral-sh/ruff/pull/16424)) ##### CLI - Move rule code from `description` to `check_name` in GitLab output serializer ([#​16437](https://redirect.github.com/astral-sh/ruff/pull/16437)) ##### Documentation - \[`pydocstyle`] Clarify that `D417` only checks docstrings with an arguments section ([#​16494](https://redirect.github.com/astral-sh/ruff/pull/16494)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
5efcfd3414
|
Update dependency ruff to v0.9.9 (#16464)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.9.7` -> `==0.9.9` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.9.9`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#099) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.8...0.9.9) ##### Preview features - Fix caching of unsupported-syntax errors ([#​16425](https://redirect.github.com/astral-sh/ruff/pull/16425)) ##### Bug fixes - Only show unsupported-syntax errors in editors when preview mode is enabled ([#​16429](https://redirect.github.com/astral-sh/ruff/pull/16429)) ### [`v0.9.8`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#098) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.7...0.9.8) ##### Preview features - Start detecting version-related syntax errors in the parser ([#​16090](https://redirect.github.com/astral-sh/ruff/pull/16090)) ##### Rule changes - \[`pylint`] Mark fix unsafe (`PLW1507`) ([#​16343](https://redirect.github.com/astral-sh/ruff/pull/16343)) - \[`pylint`] Catch `case np.nan`/`case math.nan` in `match` statements (`PLW0177`) ([#​16378](https://redirect.github.com/astral-sh/ruff/pull/16378)) - \[`ruff`] Add more Pydantic models variants to the list of default copy semantics (`RUF012`) ([#​16291](https://redirect.github.com/astral-sh/ruff/pull/16291)) ##### Server - Avoid indexing the project if `configurationPreference` is `editorOnly` ([#​16381](https://redirect.github.com/astral-sh/ruff/pull/16381)) - Avoid unnecessary info at non-trace server log level ([#​16389](https://redirect.github.com/astral-sh/ruff/pull/16389)) - Expand `ruff.configuration` to allow inline config ([#​16296](https://redirect.github.com/astral-sh/ruff/pull/16296)) - Notify users for invalid client settings ([#​16361](https://redirect.github.com/astral-sh/ruff/pull/16361)) ##### Configuration - Add `per-file-target-version` option ([#​16257](https://redirect.github.com/astral-sh/ruff/pull/16257)) ##### Bug fixes - \[`refurb`] Do not consider docstring(s) (`FURB156`) ([#​16391](https://redirect.github.com/astral-sh/ruff/pull/16391)) - \[`flake8-self`] Ignore attribute accesses on instance-like variables (`SLF001`) ([#​16149](https://redirect.github.com/astral-sh/ruff/pull/16149)) - \[`pylint`] Fix false positives, add missing methods, and support positional-only parameters (`PLE0302`) ([#​16263](https://redirect.github.com/astral-sh/ruff/pull/16263)) - \[`flake8-pyi`] Mark `PYI030` fix unsafe when comments are deleted ([#​16322](https://redirect.github.com/astral-sh/ruff/pull/16322)) ##### Documentation - Fix example for `S611` ([#​16316](https://redirect.github.com/astral-sh/ruff/pull/16316)) - Normalize inconsistent markdown headings in docstrings ([#​16364](https://redirect.github.com/astral-sh/ruff/pull/16364)) - Document MSRV policy ([#​16384](https://redirect.github.com/astral-sh/ruff/pull/16384)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
222588645b
|
Update dependency ruff to v0.9.7 (#16336)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.9.6` -> `==0.9.7` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.9.7`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#097) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.6...0.9.7) ##### Preview features - Consider `__new__` methods as special function type for enforcing class method or static method rules ([#​13305](https://redirect.github.com/astral-sh/ruff/pull/13305)) - \[`airflow`] Improve the internal logic to differentiate deprecated symbols (`AIR303`) ([#​16013](https://redirect.github.com/astral-sh/ruff/pull/16013)) - \[`refurb`] Manual timezone monkeypatching (`FURB162`) ([#​16113](https://redirect.github.com/astral-sh/ruff/pull/16113)) - \[`ruff`] Implicit class variable in dataclass (`RUF045`) ([#​14349](https://redirect.github.com/astral-sh/ruff/pull/14349)) - \[`ruff`] Skip singleton starred expressions for `incorrectly-parenthesized-tuple-in-subscript` (`RUF031`) ([#​16083](https://redirect.github.com/astral-sh/ruff/pull/16083)) - \[`refurb`] Check for subclasses includes subscript expressions (`FURB189`) ([#​16155](https://redirect.github.com/astral-sh/ruff/pull/16155)) ##### Rule changes - \[`flake8-comprehensions`]: Handle trailing comma in `C403` fix ([#​16110](https://redirect.github.com/astral-sh/ruff/pull/16110)) - \[`flake8-debugger`] Also flag `sys.breakpointhook` and `sys.__breakpointhook__` (`T100`) ([#​16191](https://redirect.github.com/astral-sh/ruff/pull/16191)) - \[`pydocstyle`] Handle arguments with the same names as sections (`D417`) ([#​16011](https://redirect.github.com/astral-sh/ruff/pull/16011)) - \[`pylint`] Correct ordering of arguments in fix for `if-stmt-min-max` (`PLR1730`) ([#​16080](https://redirect.github.com/astral-sh/ruff/pull/16080)) - \[`pylint`] Do not offer fix for raw strings (`PLE251`) ([#​16132](https://redirect.github.com/astral-sh/ruff/pull/16132)) - \[`pyupgrade`] Do not upgrade functional `TypedDicts` with private field names to the class-based syntax (`UP013`) ([#​16219](https://redirect.github.com/astral-sh/ruff/pull/16219)) - \[`pyupgrade`] Handle micro version numbers correctly (`UP036`) ([#​16091](https://redirect.github.com/astral-sh/ruff/pull/16091)) - \[`pyupgrade`] Unwrap unary expressions correctly (`UP018`) ([#​15919](https://redirect.github.com/astral-sh/ruff/pull/15919)) - \[`ruff`] Skip `RUF001` diagnostics when visiting string type definitions ([#​16122](https://redirect.github.com/astral-sh/ruff/pull/16122)) - \[`flake8-pyi`] Avoid flagging `custom-typevar-for-self` on metaclass methods (`PYI019`) ([#​16141](https://redirect.github.com/astral-sh/ruff/pull/16141)) - \[`pycodestyle`] Exempt `site.addsitedir(...)` calls (`E402`) ([#​16251](https://redirect.github.com/astral-sh/ruff/pull/16251)) ##### Formatter - Fix unstable formatting of trailing end-of-line comments of parenthesized attribute values ([#​16187](https://redirect.github.com/astral-sh/ruff/pull/16187)) ##### Server - Fix handling of requests received after shutdown message ([#​16262](https://redirect.github.com/astral-sh/ruff/pull/16262)) - Ignore `source.organizeImports.ruff` and `source.fixAll.ruff` code actions for a notebook cell ([#​16154](https://redirect.github.com/astral-sh/ruff/pull/16154)) - Include document specific debug info for `ruff.printDebugInformation` ([#​16215](https://redirect.github.com/astral-sh/ruff/pull/16215)) - Update server to return the debug info as string with `ruff.printDebugInformation` ([#​16214](https://redirect.github.com/astral-sh/ruff/pull/16214)) ##### CLI - Warn on invalid `noqa` even when there are no diagnostics ([#​16178](https://redirect.github.com/astral-sh/ruff/pull/16178)) - Better error messages while loading configuration `extend`s ([#​15658](https://redirect.github.com/astral-sh/ruff/pull/15658)) ##### Bug fixes - \[`refurb`] Correctly handle lengths of literal strings in `slice-to-remove-prefix-or-suffix` (`FURB188`) ([#​16237](https://redirect.github.com/astral-sh/ruff/pull/16237)) ##### Documentation - Add FAQ entry for `source.*` code actions in Notebook ([#​16212](https://redirect.github.com/astral-sh/ruff/pull/16212)) - Add `SECURITY.md` ([#​16224](https://redirect.github.com/astral-sh/ruff/pull/16224)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
f3d1bf845e
|
Update dependency ruff to v0.9.6 (#16197)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.9.5` -> `==0.9.6` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.9.6`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#096) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.5...0.9.6) ##### Preview features - \[`airflow`] Add `external_task.{ExternalTaskMarker, ExternalTaskSensor}` for `AIR302` ([#​16014](https://redirect.github.com/astral-sh/ruff/pull/16014)) - \[`flake8-builtins`] Make strict module name comparison optional (`A005`) ([#​15951](https://redirect.github.com/astral-sh/ruff/pull/15951)) - \[`flake8-pyi`] Extend fix to Python <= 3.9 for `redundant-none-literal` (`PYI061`) ([#​16044](https://redirect.github.com/astral-sh/ruff/pull/16044)) - \[`pylint`] Also report when the object isn't a literal (`PLE1310`) ([#​15985](https://redirect.github.com/astral-sh/ruff/pull/15985)) - \[`ruff`] Implement `indented-form-feed` (`RUF054`) ([#​16049](https://redirect.github.com/astral-sh/ruff/pull/16049)) - \[`ruff`] Skip type definitions for `missing-f-string-syntax` (`RUF027`) ([#​16054](https://redirect.github.com/astral-sh/ruff/pull/16054)) ##### Rule changes - \[`flake8-annotations`] Correct syntax for `typing.Union` in suggested return type fixes for `ANN20x` rules ([#​16025](https://redirect.github.com/astral-sh/ruff/pull/16025)) - \[`flake8-builtins`] Match upstream module name comparison (`A005`) ([#​16006](https://redirect.github.com/astral-sh/ruff/pull/16006)) - \[`flake8-comprehensions`] Detect overshadowed `list`/`set`/`dict`, ignore variadics and named expressions (`C417`) ([#​15955](https://redirect.github.com/astral-sh/ruff/pull/15955)) - \[`flake8-pie`] Remove following comma correctly when the unpacked dictionary is empty (`PIE800`) ([#​16008](https://redirect.github.com/astral-sh/ruff/pull/16008)) - \[`flake8-simplify`] Only trigger `SIM401` on known dictionaries ([#​15995](https://redirect.github.com/astral-sh/ruff/pull/15995)) - \[`pylint`] Do not report calls when object type and argument type mismatch, remove custom escape handling logic (`PLE1310`) ([#​15984](https://redirect.github.com/astral-sh/ruff/pull/15984)) - \[`pyupgrade`] Comments within parenthesized value ranges should not affect applicability (`UP040`) ([#​16027](https://redirect.github.com/astral-sh/ruff/pull/16027)) - \[`pyupgrade`] Don't introduce invalid syntax when upgrading old-style type aliases with parenthesized multiline values (`UP040`) ([#​16026](https://redirect.github.com/astral-sh/ruff/pull/16026)) - \[`pyupgrade`] Ensure we do not rename two type parameters to the same name (`UP049`) ([#​16038](https://redirect.github.com/astral-sh/ruff/pull/16038)) - \[`pyupgrade`] \[`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`) ([#​16032](https://redirect.github.com/astral-sh/ruff/pull/16032)) - \[`ruff`] Update `RUF009` to behave similar to `B008` and ignore attributes with immutable types ([#​16048](https://redirect.github.com/astral-sh/ruff/pull/16048)) ##### Server - Root exclusions in the server to project root ([#​16043](https://redirect.github.com/astral-sh/ruff/pull/16043)) ##### Bug fixes - \[`flake8-datetime`] Ignore `.replace()` calls while looking for `.astimezone` ([#​16050](https://redirect.github.com/astral-sh/ruff/pull/16050)) - \[`flake8-type-checking`] Avoid `TC004` false positive where the runtime definition is provided by `__getattr__` ([#​16052](https://redirect.github.com/astral-sh/ruff/pull/16052)) ##### Documentation - Improve `ruff-lsp` migration document ([#​16072](https://redirect.github.com/astral-sh/ruff/pull/16072)) - Undeprecate `ruff.nativeServer` ([#​16039](https://redirect.github.com/astral-sh/ruff/pull/16039)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
8fb69d3b05
|
Update dependency ruff to v0.9.5 (#16062) | |
|
|
c81f6c0bd2
|
Update dependency mdformat to v0.7.22 (#15896)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [mdformat](https://redirect.github.com/hukkin/mdformat) ([changelog](https://mdformat.readthedocs.io/en/stable/users/changelog.html)) | `==0.7.21` -> `==0.7.22` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>hukkin/mdformat (mdformat)</summary> ### [`v0.7.22`](https://redirect.github.com/hukkin/mdformat/compare/0.7.21...0.7.22) [Compare Source](https://redirect.github.com/hukkin/mdformat/compare/0.7.21...0.7.22) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
a53626a8b2
|
Update dependency ruff to v0.9.4 (#15897)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | 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.9.3` -> `==0.9.4` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.9.4`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#094) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.9.3...0.9.4) ##### Preview features - \[`airflow`] Extend airflow context parameter check for `BaseOperator.execute` (`AIR302`) ([#​15713](https://redirect.github.com/astral-sh/ruff/pull/15713)) - \[`airflow`] Update `AIR302` to check for deprecated context keys ([#​15144](https://redirect.github.com/astral-sh/ruff/pull/15144)) - \[`flake8-bandit`] Permit suspicious imports within stub files (`S4`) ([#​15822](https://redirect.github.com/astral-sh/ruff/pull/15822)) - \[`pylint`] Do not trigger `PLR6201` on empty collections ([#​15732](https://redirect.github.com/astral-sh/ruff/pull/15732)) - \[`refurb`] Do not emit diagnostic when loop variables are used outside loop body (`FURB122`) ([#​15757](https://redirect.github.com/astral-sh/ruff/pull/15757)) - \[`ruff`] Add support for more `re` patterns (`RUF055`) ([#​15764](https://redirect.github.com/astral-sh/ruff/pull/15764)) - \[`ruff`] Check for shadowed `map` before suggesting fix (`RUF058`) ([#​15790](https://redirect.github.com/astral-sh/ruff/pull/15790)) - \[`ruff`] Do not emit diagnostic when all arguments to `zip()` are variadic (`RUF058`) ([#​15744](https://redirect.github.com/astral-sh/ruff/pull/15744)) - \[`ruff`] Parenthesize fix when argument spans multiple lines for `unnecessary-round` (`RUF057`) ([#​15703](https://redirect.github.com/astral-sh/ruff/pull/15703)) ##### Rule changes - Preserve quote style in generated code ([#​15726](https://redirect.github.com/astral-sh/ruff/pull/15726), [#​15778](https://redirect.github.com/astral-sh/ruff/pull/15778), [#​15794](https://redirect.github.com/astral-sh/ruff/pull/15794)) - \[`flake8-bugbear`] Exempt `NewType` calls where the original type is immutable (`B008`) ([#​15765](https://redirect.github.com/astral-sh/ruff/pull/15765)) - \[`pylint`] Honor banned top-level imports by `TID253` in `PLC0415`. ([#​15628](https://redirect.github.com/astral-sh/ruff/pull/15628)) - \[`pyupgrade`] Ignore `is_typeddict` and `TypedDict` for `deprecated-import` (`UP035`) ([#​15800](https://redirect.github.com/astral-sh/ruff/pull/15800)) ##### CLI - Fix formatter warning message for `flake8-quotes` option ([#​15788](https://redirect.github.com/astral-sh/ruff/pull/15788)) - Implement tab autocomplete for `ruff config` ([#​15603](https://redirect.github.com/astral-sh/ruff/pull/15603)) ##### Bug fixes - \[`flake8-comprehensions`] Do not emit `unnecessary-map` diagnostic when lambda has different arity (`C417`) ([#​15802](https://redirect.github.com/astral-sh/ruff/pull/15802)) - \[`flake8-comprehensions`] Parenthesize `sorted` when needed for `unnecessary-call-around-sorted` (`C413`) ([#​15825](https://redirect.github.com/astral-sh/ruff/pull/15825)) - \[`pyupgrade`] Handle end-of-line comments for `quoted-annotation` (`UP037`) ([#​15824](https://redirect.github.com/astral-sh/ruff/pull/15824)) ##### Documentation - Add missing config docstrings ([#​15803](https://redirect.github.com/astral-sh/ruff/pull/15803)) - Add references to `trio.run_process` and `anyio.run_process` ([#​15761](https://redirect.github.com/astral-sh/ruff/pull/15761)) - Use `uv init --lib` in tutorial ([#​15718](https://redirect.github.com/astral-sh/ruff/pull/15718)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
|
|
|
0ff71bc3f3
|
Update dependency ruff to v0.9.3 (#15755) | |
|
|
43fbbdc71b
|
Update dependency mdformat-mkdocs to v4.1.2 (#15754) | |
|
|
57a84a3354
|
Update dependency ruff to v0.9.2 (#15595) | |
|
|
c0259e7bf2
|
Update dependency ruff to v0.9.1 (#15432)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> |
|
|
|
adca7bd95c
|
Remove pygments pin (#15404)
## Summary The recent release of Pygments ([2.19.1](https://github.com/pygments/pygments/releases/tag/2.19.1)) allows the pinned version to be removed as the PYI alias for Python syntax highlighting has been removed. ## Test Plan - Follow the steps outlined in https://github.com/astral-sh/ruff/blob/main/CONTRIBUTING.md#mkdocs to get the documentation site running locally. - Spot test rules pages that have PYI code blocks to ensure that syntax highlighting remains e.g. [http://127.0.0.1:8000/ruff/rules/complex-if-statement-in-stub/](http://127.0.0.1:8000/ruff/rules/complex-if-statement-in-stub/). **Note:** I am unable to test the insiders build but would assume that it functions locally as I do not have access to MkDocs Insiders, but I would like to assume that it functions in the same way as the non-insiders build. |
|
|
|
84e13cea14
|
Update dependency ruff to v0.8.6 (#15283) | |
|
|
e953ecf42f
|
Update dependency mdformat-mkdocs to v4.1.1 (#15192) |