Skip to content

Commit c420052

Browse files
Bump ruff from 0.9.4 to 0.9.5 (#23624)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.4 to 0.9.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.9.5</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>Recognize all symbols named <code>TYPE_CHECKING</code> for <code>in_type_checking_block</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15719">#15719</a>)</li> <li>[<code>flake8-comprehensions</code>] Handle builtins at top of file correctly for <code>unnecessary-dict-comprehension-for-iterable</code> (<code>C420</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15837">#15837</a>)</li> <li>[<code>flake8-logging</code>] <code>.exception()</code> and <code>exc_info=</code> outside exception handlers (<code>LOG004</code>, <code>LOG014</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15799">#15799</a>)</li> <li>[<code>flake8-pyi</code>] Fix incorrect behaviour of <code>custom-typevar-return-type</code> preview-mode autofix if <code>typing</code> was already imported (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15853">#15853</a>)</li> <li>[<code>flake8-pyi</code>] Fix more complex cases (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15821">#15821</a>)</li> <li>[<code>flake8-pyi</code>] Make <code>PYI019</code> autofixable for <code>.py</code> files in preview mode as well as stubs (<a href="https://redirect.github.com/astral-sh/ruff/pull/15889">#15889</a>)</li> <li>[<code>flake8-pyi</code>] Remove type parameter correctly when it is the last (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15854">#15854</a>)</li> <li>[<code>pylint</code>] Fix missing parens in unsafe fix for <code>unnecessary-dunder-call</code> (<code>PLC2801</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15762">#15762</a>)</li> <li>[<code>pyupgrade</code>] Better messages and diagnostic range (<code>UP015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15872">#15872</a>)</li> <li>[<code>pyupgrade</code>] Rename private type parameters in PEP 695 generics (<code>UP049</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15862">#15862</a>)</li> <li>[<code>refurb</code>] Also report non-name expressions (<code>FURB169</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15905">#15905</a>)</li> <li>[<code>refurb</code>] Mark fix as unsafe if there are comments (<code>FURB171</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15832">#15832</a>)</li> <li>[<code>ruff</code>] Classes with mixed type variable style (<code>RUF053</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15841">#15841</a>)</li> <li>[<code>airflow</code>] <code>BashOperator</code> has been moved to <code>airflow.providers.standard.operators.bash.BashOperator</code> (<code>AIR302</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15922">#15922</a>)</li> <li>[<code>flake8-pyi</code>] Add autofix for unused-private-type-var (<code>PYI018</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15999">#15999</a>)</li> <li>[<code>flake8-pyi</code>] Significantly improve accuracy of <code>PYI019</code> if preview mode is enabled (<a href="https://redirect.github.com/astral-sh/ruff/pull/15888">#15888</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>Preserve triple quotes and prefixes for strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/15818">#15818</a>)</li> <li>[<code>flake8-comprehensions</code>] Skip when <code>TypeError</code> present from too many (kw)args for <code>C410</code>,<code>C411</code>, and <code>C418</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15838">#15838</a>)</li> <li>[<code>flake8-pyi</code>] Rename <code>PYI019</code> and improve its diagnostic message (<a href="https://redirect.github.com/astral-sh/ruff/pull/15885">#15885</a>)</li> <li>[<code>pep8-naming</code>] Ignore <code>@OverRide</code> methods (<code>N803</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15954">#15954</a>)</li> <li>[<code>pyupgrade</code>] Reuse replacement logic from <code>UP046</code> and <code>UP047</code> to preserve more comments (<code>UP040</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15840">#15840</a>)</li> <li>[<code>ruff</code>] Analyze deferred annotations before enforcing <code>mutable-(data)class-default</code> and <code>function-call-in-dataclass-default-argument</code> (<code>RUF008</code>,<code>RUF009</code>,<code>RUF012</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15921">#15921</a>)</li> <li>[<code>pycodestyle</code>] Exempt <code>sys.path += ...</code> calls (<code>E402</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15980">#15980</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Config error only when <code>flake8-import-conventions</code> alias conflicts with <code>isort.required-imports</code> bound name (<a href="https://redirect.github.com/astral-sh/ruff/pull/15918">#15918</a>)</li> <li>Workaround Even Better TOML crash related to <code>allOf</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15992">#15992</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-comprehensions</code>] Unnecessary <code>list</code> comprehension (rewrite as a <code>set</code> comprehension) (<code>C403</code>) - Handle extraneous parentheses around list comprehension (<a href="https://redirect.github.com/astral-sh/ruff/pull/15877">#15877</a>)</li> <li>[<code>flake8-comprehensions</code>] Handle trailing comma in fixes for <code>unnecessary-generator-list/set</code> (<code>C400</code>,<code>C401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15929">#15929</a>)</li> <li>[<code>flake8-pyi</code>] Fix several correctness issues with <code>custom-type-var-return-type</code> (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15851">#15851</a>)</li> <li>[<code>pep8-naming</code>] Consider any number of leading underscore for <code>N801</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15988">#15988</a>)</li> <li>[<code>pyflakes</code>] Visit forward annotations in <code>TypeAliasType</code> as types (<code>F401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15829">#15829</a>)</li> <li>[<code>pylint</code>] Correct min/max auto-fix and suggestion for (<code>PL1730</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15930">#15930</a>)</li> <li>[<code>refurb</code>] Handle unparenthesized tuples correctly (<code>FURB122</code>, <code>FURB142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15953">#15953</a>)</li> <li>[<code>refurb</code>] Avoid <code>None | None</code> as well as better detection and fix (<code>FURB168</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15779">#15779</a>)</li> </ul> <h3>Documentation</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.9.5</h2> <h3>Preview features</h3> <ul> <li>Recognize all symbols named <code>TYPE_CHECKING</code> for <code>in_type_checking_block</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15719">#15719</a>)</li> <li>[<code>flake8-comprehensions</code>] Handle builtins at top of file correctly for <code>unnecessary-dict-comprehension-for-iterable</code> (<code>C420</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15837">#15837</a>)</li> <li>[<code>flake8-logging</code>] <code>.exception()</code> and <code>exc_info=</code> outside exception handlers (<code>LOG004</code>, <code>LOG014</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15799">#15799</a>)</li> <li>[<code>flake8-pyi</code>] Fix incorrect behaviour of <code>custom-typevar-return-type</code> preview-mode autofix if <code>typing</code> was already imported (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15853">#15853</a>)</li> <li>[<code>flake8-pyi</code>] Fix more complex cases (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15821">#15821</a>)</li> <li>[<code>flake8-pyi</code>] Make <code>PYI019</code> autofixable for <code>.py</code> files in preview mode as well as stubs (<a href="https://redirect.github.com/astral-sh/ruff/pull/15889">#15889</a>)</li> <li>[<code>flake8-pyi</code>] Remove type parameter correctly when it is the last (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15854">#15854</a>)</li> <li>[<code>pylint</code>] Fix missing parens in unsafe fix for <code>unnecessary-dunder-call</code> (<code>PLC2801</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15762">#15762</a>)</li> <li>[<code>pyupgrade</code>] Better messages and diagnostic range (<code>UP015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15872">#15872</a>)</li> <li>[<code>pyupgrade</code>] Rename private type parameters in PEP 695 generics (<code>UP049</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15862">#15862</a>)</li> <li>[<code>refurb</code>] Also report non-name expressions (<code>FURB169</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15905">#15905</a>)</li> <li>[<code>refurb</code>] Mark fix as unsafe if there are comments (<code>FURB171</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15832">#15832</a>)</li> <li>[<code>ruff</code>] Classes with mixed type variable style (<code>RUF053</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15841">#15841</a>)</li> <li>[<code>airflow</code>] <code>BashOperator</code> has been moved to <code>airflow.providers.standard.operators.bash.BashOperator</code> (<code>AIR302</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15922">#15922</a>)</li> <li>[<code>flake8-pyi</code>] Add autofix for unused-private-type-var (<code>PYI018</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15999">#15999</a>)</li> <li>[<code>flake8-pyi</code>] Significantly improve accuracy of <code>PYI019</code> if preview mode is enabled (<a href="https://redirect.github.com/astral-sh/ruff/pull/15888">#15888</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>Preserve triple quotes and prefixes for strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/15818">#15818</a>)</li> <li>[<code>flake8-comprehensions</code>] Skip when <code>TypeError</code> present from too many (kw)args for <code>C410</code>,<code>C411</code>, and <code>C418</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15838">#15838</a>)</li> <li>[<code>flake8-pyi</code>] Rename <code>PYI019</code> and improve its diagnostic message (<a href="https://redirect.github.com/astral-sh/ruff/pull/15885">#15885</a>)</li> <li>[<code>pep8-naming</code>] Ignore <code>@OverRide</code> methods (<code>N803</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15954">#15954</a>)</li> <li>[<code>pyupgrade</code>] Reuse replacement logic from <code>UP046</code> and <code>UP047</code> to preserve more comments (<code>UP040</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15840">#15840</a>)</li> <li>[<code>ruff</code>] Analyze deferred annotations before enforcing <code>mutable-(data)class-default</code> and <code>function-call-in-dataclass-default-argument</code> (<code>RUF008</code>,<code>RUF009</code>,<code>RUF012</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15921">#15921</a>)</li> <li>[<code>pycodestyle</code>] Exempt <code>sys.path += ...</code> calls (<code>E402</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15980">#15980</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Config error only when <code>flake8-import-conventions</code> alias conflicts with <code>isort.required-imports</code> bound name (<a href="https://redirect.github.com/astral-sh/ruff/pull/15918">#15918</a>)</li> <li>Workaround Even Better TOML crash related to <code>allOf</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15992">#15992</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-comprehensions</code>] Unnecessary <code>list</code> comprehension (rewrite as a <code>set</code> comprehension) (<code>C403</code>) - Handle extraneous parentheses around list comprehension (<a href="https://redirect.github.com/astral-sh/ruff/pull/15877">#15877</a>)</li> <li>[<code>flake8-comprehensions</code>] Handle trailing comma in fixes for <code>unnecessary-generator-list/set</code> (<code>C400</code>,<code>C401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15929">#15929</a>)</li> <li>[<code>flake8-pyi</code>] Fix several correctness issues with <code>custom-type-var-return-type</code> (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15851">#15851</a>)</li> <li>[<code>pep8-naming</code>] Consider any number of leading underscore for <code>N801</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/15988">#15988</a>)</li> <li>[<code>pyflakes</code>] Visit forward annotations in <code>TypeAliasType</code> as types (<code>F401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15829">#15829</a>)</li> <li>[<code>pylint</code>] Correct min/max auto-fix and suggestion for (<code>PL1730</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15930">#15930</a>)</li> <li>[<code>refurb</code>] Handle unparenthesized tuples correctly (<code>FURB122</code>, <code>FURB142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15953">#15953</a>)</li> <li>[<code>refurb</code>] Avoid <code>None | None</code> as well as better detection and fix (<code>FURB168</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15779">#15779</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add deprecation warning for <code>ruff-lsp</code> related settings (<a href="https://redirect.github.com/astral-sh/ruff/pull/15850">#15850</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/10d3e64ccdf69d90c3252a15b3408a4238427792"><code>10d3e64</code></a> Bump version to 0.9.5 (<a href="https://redirect.github.com/astral-sh/ruff/issues/16002">#16002</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/84ceddcbd96b454ac6ee5f77641bf84251b97e19"><code>84ceddc</code></a> [<code>ruff</code>] Classes with mixed type variable style (<code>RUF053</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/15841">#15841</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ba2f0e998d09342dc9b1ad23864508eafc3dfb67"><code>ba2f0e9</code></a> [flake8-pyi] Add autofix for unused-private-type-var (PYI018) (<a href="https://redirect.github.com/astral-sh/ruff/issues/15999">#15999</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/18b497a913e19a10a752c618c9791bcb19da2c96"><code>18b497a</code></a> [red-knot] Fixup a couple of nits in the <code>red_knot_test</code> README (<a href="https://redirect.github.com/astral-sh/ruff/issues/15996">#15996</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/7cac0da44db2f008c41b67c1dce36ce417336873"><code>7cac0da</code></a> Workaround Even Better TOML crash related to <code>allOf</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/15992">#15992</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/b66cc94f9b21e806cd43f297a022c334f173486f"><code>b66cc94</code></a> Add deprecation warning for <code>ruff-lsp</code> related settings (<a href="https://redirect.github.com/astral-sh/ruff/issues/15850">#15850</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/e345307260569be55a5a6c512b2bfb1cca7f2f7a"><code>e345307</code></a> [red-knot] Fix diagnostic range for non-iterable unpacking assignments (<a href="https://redirect.github.com/astral-sh/ruff/issues/15994">#15994</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5588c75d65e8edcedcead24eec192f4a3a8acba8"><code>5588c75</code></a> [red-knot] Fix relative imports in <code>src.root</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/15990">#15990</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9d2105b863e4043504e941fe77a533caadc3c3f7"><code>9d2105b</code></a> add instance variable examples to RUF012 (<a href="https://redirect.github.com/astral-sh/ruff/issues/15982">#15982</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/8fcac0ff365607d497cf94a2a0a4b53cc9d6f39d"><code>8fcac0f</code></a> Recognize all symbols named <code>TYPE_CHECKING</code> for <code>in_type_checking_block</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/15">#15</a>...</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.9.4...0.9.5">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.9.4&new-version=0.9.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 3753f5c commit c420052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requirements-lintrunner.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
lintrunner==0.12.7
44
lintrunner-adapters==0.12.4
55
# RUFF
6-
ruff==0.9.4
6+
ruff==0.9.5
77
# CLANGFORMAT
88
clang-format==19.1.7

0 commit comments

Comments
 (0)