Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ruff from 0.1.3 to 0.1.4 (#146)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.3 to 0.1.4. <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>v0.1.4</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-trio</code>] Implement <code>timeout-without-await</code> (<code>TRIO001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8439">#8439</a>)</li> <li>[<code>numpy</code>] Implement NumPy 2.0 migration rule (<code>NPY200</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7702">#7702</a>)</li> <li>[<code>pylint</code>] Implement <code>bad-open-mode</code> (<code>W1501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8294">#8294</a>)</li> <li>[<code>pylint</code>] Implement <code>import-outside-toplevel</code> (<code>C0415</code>) rule (<a href="https://redirect.github.com/astral-sh/ruff/pull/5180">#5180</a>)</li> <li>[<code>pylint</code>] Implement <code>useless-with-lock</code> (<code>W2101</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8321">#8321</a>)</li> <li>[<code>pyupgrade</code>] Implement <code>timeout-error-alias</code> (<code>UP041</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8476">#8476</a>)</li> <li>[<code>refurb</code>] Implement <code>isinstance-type-none</code> (<code>FURB168</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8308">#8308</a>)</li> <li>Detect confusable Unicode-to-Unicode units in <code>RUF001</code>, <code>RUF002</code>, and <code>RUF003</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/4430">#4430</a>)</li> <li>Add newline after module docstrings in preview style (<a href="https://redirect.github.com/astral-sh/ruff/pull/8283">#8283</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Add a note on line-too-long to the formatter docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8314">#8314</a>)</li> <li>Preserve trailing statement semicolons when using <code>fmt: skip</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8273">#8273</a>)</li> <li>Preserve trailing semicolons when using <code>fmt: off</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8275">#8275</a>)</li> <li>Avoid duplicating linter-formatter compatibility warnings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8292">#8292</a>)</li> <li>Avoid inserting a newline after function docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8375">#8375</a>)</li> <li>Insert newline between docstring and following own line comment (<a href="https://redirect.github.com/astral-sh/ruff/pull/8216">#8216</a>)</li> <li>Split tuples in return positions by comma first (<a href="https://redirect.github.com/astral-sh/ruff/pull/8280">#8280</a>)</li> <li>Avoid treating byte strings as docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8350">#8350</a>)</li> <li>Add <code>--line-length</code> option to <code>format</code> command (<a href="https://redirect.github.com/astral-sh/ruff/pull/8363">#8363</a>)</li> <li>Avoid parenthesizing unsplittable because of comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8431">#8431</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add <code>--output-format</code> to <code>ruff rule</code> and <code>ruff linter</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8203">#8203</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Respect <code>--force-exclude</code> in <code>lint.exclude</code> and <code>format.exclude</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8393">#8393</a>)</li> <li>Respect <code>--extend-per-file-ignores</code> on the CLI (<a href="https://redirect.github.com/astral-sh/ruff/pull/8329">#8329</a>)</li> <li>Extend <code>bad-dunder-method-name</code> to permit <code>__index__</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8300">#8300</a>)</li> <li>Fix panic with 8 in octal escape (<a href="https://redirect.github.com/astral-sh/ruff/pull/8356">#8356</a>)</li> <li>Avoid raising <code>D300</code> when both triple quote styles are present (<a href="https://redirect.github.com/astral-sh/ruff/pull/8462">#8462</a>)</li> <li>Consider unterminated f-strings in <code>FStringRanges</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8154">#8154</a>)</li> <li>Avoid including literal <code>shell=True</code> for truthy, non-<code>True</code> diagnostics (<a href="https://redirect.github.com/astral-sh/ruff/pull/8359">#8359</a>)</li> <li>Avoid triggering single-element test for starred expressions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8433">#8433</a>)</li> <li>Detect and ignore Jupyter automagics (<a href="https://redirect.github.com/astral-sh/ruff/pull/8398">#8398</a>)</li> <li>Fix invalid E231 error with f-strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8369">#8369</a>)</li> <li>Avoid triggering <code>NamedTuple</code> rewrite with starred annotation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8434">#8434</a>)</li> <li>Avoid un-setting bracket flag in logical lines (<a href="https://redirect.github.com/astral-sh/ruff/pull/8380">#8380</a>)</li> <li>Place 'r' prefix before 'f' for raw format strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8464">#8464</a>)</li> <li>Remove trailing periods from NumPy 2.0 code actions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8475">#8475</a>)</li> <li>Fix bug where <code>PLE1307</code> was raised when formatting <code>%c</code> with characters (<a href="https://redirect.github.com/astral-sh/ruff/pull/8407">#8407</a>)</li> <li>Remove unicode flag from comparable (<a href="https://redirect.github.com/astral-sh/ruff/pull/8440">#8440</a>)</li> </ul> <!-- 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.1.4</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-trio</code>] Implement <code>timeout-without-await</code> (<code>TRIO001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8439">#8439</a>)</li> <li>[<code>numpy</code>] Implement NumPy 2.0 migration rule (<code>NPY200</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/7702">#7702</a>)</li> <li>[<code>pylint</code>] Implement <code>bad-open-mode</code> (<code>W1501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8294">#8294</a>)</li> <li>[<code>pylint</code>] Implement <code>import-outside-toplevel</code> (<code>C0415</code>) rule (<a href="https://redirect.github.com/astral-sh/ruff/pull/5180">#5180</a>)</li> <li>[<code>pylint</code>] Implement <code>useless-with-lock</code> (<code>W2101</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8321">#8321</a>)</li> <li>[<code>pyupgrade</code>] Implement <code>timeout-error-alias</code> (<code>UP041</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8476">#8476</a>)</li> <li>[<code>refurb</code>] Implement <code>isinstance-type-none</code> (<code>FURB168</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8308">#8308</a>)</li> <li>Detect confusable Unicode-to-Unicode units in <code>RUF001</code>, <code>RUF002</code>, and <code>RUF003</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/4430">#4430</a>)</li> <li>Add newline after module docstrings in preview style (<a href="https://redirect.github.com/astral-sh/ruff/pull/8283">#8283</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Add a note on line-too-long to the formatter docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8314">#8314</a>)</li> <li>Preserve trailing statement semicolons when using <code>fmt: skip</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8273">#8273</a>)</li> <li>Preserve trailing semicolons when using <code>fmt: off</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8275">#8275</a>)</li> <li>Avoid duplicating linter-formatter compatibility warnings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8292">#8292</a>)</li> <li>Avoid inserting a newline after function docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8375">#8375</a>)</li> <li>Insert newline between docstring and following own line comment (<a href="https://redirect.github.com/astral-sh/ruff/pull/8216">#8216</a>)</li> <li>Split tuples in return positions by comma first (<a href="https://redirect.github.com/astral-sh/ruff/pull/8280">#8280</a>)</li> <li>Avoid treating byte strings as docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8350">#8350</a>)</li> <li>Add <code>--line-length</code> option to <code>format</code> command (<a href="https://redirect.github.com/astral-sh/ruff/pull/8363">#8363</a>)</li> <li>Avoid parenthesizing unsplittable because of comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8431">#8431</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add <code>--output-format</code> to <code>ruff rule</code> and <code>ruff linter</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8203">#8203</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Respect <code>--force-exclude</code> in <code>lint.exclude</code> and <code>format.exclude</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8393">#8393</a>)</li> <li>Respect <code>--extend-per-file-ignores</code> on the CLI (<a href="https://redirect.github.com/astral-sh/ruff/pull/8329">#8329</a>)</li> <li>Extend <code>bad-dunder-method-name</code> to permit <code>__index__</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8300">#8300</a>)</li> <li>Fix panic with 8 in octal escape (<a href="https://redirect.github.com/astral-sh/ruff/pull/8356">#8356</a>)</li> <li>Avoid raising <code>D300</code> when both triple quote styles are present (<a href="https://redirect.github.com/astral-sh/ruff/pull/8462">#8462</a>)</li> <li>Consider unterminated f-strings in <code>FStringRanges</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8154">#8154</a>)</li> <li>Avoid including literal <code>shell=True</code> for truthy, non-<code>True</code> diagnostics (<a href="https://redirect.github.com/astral-sh/ruff/pull/8359">#8359</a>)</li> <li>Avoid triggering single-element test for starred expressions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8433">#8433</a>)</li> <li>Detect and ignore Jupyter automagics (<a href="https://redirect.github.com/astral-sh/ruff/pull/8398">#8398</a>)</li> <li>Fix invalid E231 error with f-strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8369">#8369</a>)</li> <li>Avoid triggering <code>NamedTuple</code> rewrite with starred annotation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8434">#8434</a>)</li> <li>Avoid un-setting bracket flag in logical lines (<a href="https://redirect.github.com/astral-sh/ruff/pull/8380">#8380</a>)</li> <li>Place 'r' prefix before 'f' for raw format strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8464">#8464</a>)</li> <li>Remove trailing periods from NumPy 2.0 code actions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8475">#8475</a>)</li> <li>Fix bug where <code>PLE1307</code> was raised when formatting <code>%c</code> with characters (<a href="https://redirect.github.com/astral-sh/ruff/pull/8407">#8407</a>)</li> <li>Remove unicode flag from comparable (<a href="https://redirect.github.com/astral-sh/ruff/pull/8440">#8440</a>)</li> <li>Improve B015 message (<a href="https://redirect.github.com/astral-sh/ruff/pull/8295">#8295</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/c4889196e7e4d36517f29592e90e40ca991bc98d"><code>c488919</code></a> Add missing pyupgrade entry to changelog (<a href="https://redirect.github.com/astral-sh/ruff/issues/8479">#8479</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/6e635e99f47a6f81c4332ebe39c52125ec271c2e"><code>6e635e9</code></a> Add changelog for v0.1.4 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8478">#8478</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/260ea41975632166899c51f7f9a42f7eeb74feec"><code>260ea41</code></a> Bump version to v0.1.4 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8477">#8477</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/65effc6666d2d3af65dd491da3eb6b635be90842"><code>65effc6</code></a> Add pyupgrade <code>UP041</code> to replace <code>TimeoutError</code> aliases (<a href="https://redirect.github.com/astral-sh/ruff/issues/8476">#8476</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/4982694b54e941f437740b9e75a9b1be58560e77"><code>4982694</code></a> <code>D300</code>: prevent autofix when both triples are in body (<a href="https://redirect.github.com/astral-sh/ruff/issues/8462">#8462</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/536ac550ede22092b4309b07d3c0be2d9a3189a0"><code>536ac55</code></a> Remove trailing periods from NumPy 2.0 code actions (<a href="https://redirect.github.com/astral-sh/ruff/issues/8475">#8475</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f2335fe69278cb30ca338bf3ba234013c3e2125b"><code>f2335fe</code></a> Make Unicode-to-Unicode confusables a preview change (<a href="https://redirect.github.com/astral-sh/ruff/issues/8473">#8473</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/b0f9a14d9a03af3ef97ee81d544afd3e255278a3"><code>b0f9a14</code></a> Mark <code>byte_bounds</code> as a non-backwards-compatible NumPy 2.0 change (<a href="https://redirect.github.com/astral-sh/ruff/issues/8474">#8474</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f56bc1983b16c34a2fcb4a467a5220f54e8aa72f"><code>f56bc19</code></a> Place 'r' prefix before 'f' for raw format strings (<a href="https://redirect.github.com/astral-sh/ruff/issues/8464">#8464</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/7c12eaf322c0da18278ec62b1c11fd1b8a4b2ef2"><code>7c12eaf</code></a> Use characters instead of <code>u32</code> in confusable map (<a href="https://redirect.github.com/astral-sh/ruff/issues/8463">#8463</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.3...v0.1.4">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.1.3&new-version=0.1.4)](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>
- Loading branch information