Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pip(deps): bump the pip group with 6 updates (#584)
Bumps the pip group with 6 updates: | Package | From | To | | --- | --- | --- | | [fastapi](https://github.com/tiangolo/fastapi) | `0.110.1` | `0.110.2` | | [boto3-stubs](https://github.com/youtype/mypy_boto3_builder) | `1.34.84` | `1.34.89` | | [githubkit](https://github.com/yanyongyu/githubkit) | `0.11.3` | `0.11.4` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.17` | `9.5.18` | | [pyright](https://github.com/RobertCraigie/pyright-python) | `1.1.358` | `1.1.359` | | [ruff](https://github.com/astral-sh/ruff) | `0.3.7` | `0.4.1` | Updates `fastapi` from 0.110.1 to 0.110.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tiangolo/fastapi/releases">fastapi's releases</a>.</em></p> <blockquote> <h2>0.110.2</h2> <h3>Fixes</h3> <ul> <li>🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic <code>UndefinedType</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/9929">#9929</a> by <a href="https://github.com/arjwilliams"><code>@arjwilliams</code></a>.</li> </ul> <h3>Refactors</h3> <ul> <li>♻️ Simplify Pydantic configs in OpenAPI models in <code>fastapi/openapi/models.py</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/10886">#10886</a> by <a href="https://github.com/JoeTanto2"><code>@JoeTanto2</code></a>.</li> <li>✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11461">#11461</a> by <a href="https://github.com/tiangolo"><code>@tiangolo</code></a>.</li> </ul> <h3>Docs</h3> <ul> <li>📝 Fix types in examples under <code>docs_src/extra_data_types</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/10535">#10535</a> by <a href="https://github.com/nilslindemann"><code>@nilslindemann</code></a>.</li> <li>📝 Update references to UJSON. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11464">#11464</a> by <a href="https://github.com/tiangolo"><code>@tiangolo</code></a>.</li> <li>📝 Tweak docs and translations links, typos, format. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11389">#11389</a> by <a href="https://github.com/nilslindemann"><code>@nilslindemann</code></a>.</li> <li>📝 Fix typo in <code>docs/es/docs/async.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11400">#11400</a> by <a href="https://github.com/fabianfalon"><code>@fabianfalon</code></a>.</li> <li>📝 Update OpenAPI client generation docs to use <code>@hey-api/openapi-ts</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11339">#11339</a> by <a href="https://github.com/jordanshatford"><code>@jordanshatford</code></a>.</li> </ul> <h3>Translations</h3> <ul> <li>🌐 Update Chinese translation for <code>docs/zh/docs/index.html</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11430">#11430</a> by <a href="https://github.com/waketzheng"><code>@waketzheng</code></a>.</li> <li>🌐 Add Russian translation for <code>docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11411">#11411</a> by <a href="https://github.com/anton2yakovlev"><code>@anton2yakovlev</code></a>.</li> <li>🌐 Add Portuguese translations for <code>learn/index.md</code> <code>resources/index.md</code> <code>help/index.md</code> <code>about/index.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/10807">#10807</a> by <a href="https://github.com/nazarepiedady"><code>@nazarepiedady</code></a>.</li> <li>🌐 Update Russian translations for deployments docs. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11271">#11271</a> by <a href="https://github.com/Lufa1u"><code>@Lufa1u</code></a>.</li> <li>🌐 Add Bengali translations for <code>docs/bn/docs/python-types.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11376">#11376</a> by <a href="https://github.com/imtiaz101325"><code>@imtiaz101325</code></a>.</li> <li>🌐 Add Korean translation for <code>docs/ko/docs/tutorial/security/simple-oauth2.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/5744">#5744</a> by <a href="https://github.com/KdHyeon0661"><code>@KdHyeon0661</code></a>.</li> <li>🌐 Add Korean translation for <code>docs/ko/docs/help-fastapi.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/4139">#4139</a> by <a href="https://github.com/kty4119"><code>@kty4119</code></a>.</li> <li>🌐 Add Korean translation for <code>docs/ko/docs/advanced/events.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/5087">#5087</a> by <a href="https://github.com/pers0n4"><code>@pers0n4</code></a>.</li> <li>🌐 Add Japanese translation for <code>docs/ja/docs/tutorial/path-operation-configuration.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/1954">#1954</a> by <a href="https://github.com/SwftAlpc"><code>@SwftAlpc</code></a>.</li> <li>🌐 Add Japanese translation for <code>docs/ja/docs/tutorial/request-forms-and-files.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/1946">#1946</a> by <a href="https://github.com/SwftAlpc"><code>@SwftAlpc</code></a>.</li> <li>🌐 Add Russian translation for <code>docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/10532">#10532</a> by <a href="https://github.com/AlertRED"><code>@AlertRED</code></a>.</li> <li>🌐 Add Korean translation for <code>docs/ko/docs/tutorial/debugging.md</code>. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/5695">#5695</a> by <a href="https://github.com/JungWooGeon"><code>@JungWooGeon</code></a>.</li> </ul> <h3>Internal</h3> <ul> <li>⬆️ Upgrade version of typer for docs. PR <a href="https://redirect.github.com/tiangolo/fastapi/pull/11393">#11393</a> by <a href="https://github.com/tiangolo"><code>@tiangolo</code></a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tiangolo/fastapi/commit/be1e3faa63bd6785399d6cd98dbc8417ddd045dc"><code>be1e3fa</code></a> 🔖 Release version 0.110.2</li> <li><a href="https://github.com/tiangolo/fastapi/commit/4ae63ae4953054e03f07d47e38209dddd4bee4e6"><code>4ae63ae</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/6d523d62d0ff1433beeba6c0c0774690cc072edb"><code>6d523d6</code></a> 📝 Fix types in examples under <code>docs_src/extra_data_types</code> (<a href="https://redirect.github.com/tiangolo/fastapi/issues/10535">#10535</a>)</li> <li><a href="https://github.com/tiangolo/fastapi/commit/d84d6e03f42f7cde8c4fdd4367e33e06f37ad667"><code>d84d6e0</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/a901e2f449e7b940ce9a4844b6605a7993ca7227"><code>a901e2f</code></a> 📝 Update references to UJSON (<a href="https://redirect.github.com/tiangolo/fastapi/issues/11464">#11464</a>)</li> <li><a href="https://github.com/tiangolo/fastapi/commit/8a456451771bdee3108acb63a617e2010cd012a2"><code>8a45645</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/74cc33d16b70a910e6c3a2dcd8be586c2e6b66c4"><code>74cc33d</code></a> ♻️ Simplify Pydantic configs in OpenAPI models in <code>fastapi/openapi/models.py</code>...</li> <li><a href="https://github.com/tiangolo/fastapi/commit/5815fa58fb2011b69fe10bfb17d7ca1401fd8314"><code>5815fa5</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/09e4859cab3354dd17c5884806bbc5a1330380dd"><code>09e4859</code></a> 🐛 Fix support for query parameters with list types, handle JSON encoding Pyda...</li> <li><a href="https://github.com/tiangolo/fastapi/commit/071b8f27f965c29caeab6e04b17f7b9201b090e4"><code>071b8f2</code></a> 📝 Update release notes</li> <li>Additional commits viewable in <a href="https://github.com/tiangolo/fastapi/compare/0.110.1...0.110.2">compare view</a></li> </ul> </details> <br /> Updates `boto3-stubs` from 1.34.84 to 1.34.89 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/youtype/mypy_boto3_builder/commits">compare view</a></li> </ul> </details> <br /> Updates `githubkit` from 0.11.3 to 0.11.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/yanyongyu/githubkit/releases">githubkit's releases</a>.</em></p> <blockquote> <h2>Release 0.11.4</h2> <h2>What's Changed</h2> <ul> <li>Upgrade dependencies (hishel 0.0.26)</li> <li>re-generate code</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/yanyongyu/githubkit/compare/v0.11.3...v0.11.4">https://github.com/yanyongyu/githubkit/compare/v0.11.3...v0.11.4</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/yanyongyu/githubkit/commit/08e6b97feaae992906a5e42ce2fd444196b6d054"><code>08e6b97</code></a> :bookmark: bump version 0.11.4</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/ee90b7ff10dac1e5517a4e0be3089b644b976d9a"><code>ee90b7f</code></a> :alien: re-generate schemas</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/cf79e55d1c9901f489be7a77174bebb798aa1b57"><code>cf79e55</code></a> :arrow_up: upgrade dependencies</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/99d6dae60ca86679614b141600d857f56bf077fd"><code>99d6dae</code></a> :arrow_up: auto update by pre-commit hooks (<a href="https://redirect.github.com/yanyongyu/githubkit/issues/97">#97</a>)</li> <li>See full diff in <a href="https://github.com/yanyongyu/githubkit/compare/v0.11.3...v0.11.4">compare view</a></li> </ul> </details> <br /> Updates `mkdocs-material` from 9.5.17 to 9.5.18 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/releases">mkdocs-material's releases</a>.</em></p> <blockquote> <h2>mkdocs-material-9.5.18</h2> <ul> <li>Refactored tooltips implementation to fix positioning issues</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7044">#7044</a>: Rendering glitch when hovering contributor avatar in Chrome</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7043">#7043</a>: Highlighted lines in code blocks cutoff on mobile</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6910">#6910</a>: Incorrect position of tooltip for page status in sidebar</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6760">#6760</a>: Incorrect position and overly long tooltip in tables</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6488">#6488</a>: Incorrect position and cutoff tooltip in content tabs</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG">mkdocs-material's changelog</a>.</em></p> <blockquote> <p>mkdocs-material-9.5.18 (2024-04-16)</p> <ul> <li>Refactored tooltips implementation to fix positioning issues</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7044">#7044</a>: Rendering glitch when hovering contributor avatar in Chrome</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7043">#7043</a>: Highlighted lines in code blocks cutoff on mobile</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6910">#6910</a>: Incorrect position of tooltip for page status in sidebar</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6760">#6760</a>: Incorrect position and overly long tooltip in tables</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6488">#6488</a>: Incorrect position and cutoff tooltip in content tabs</li> </ul> <p>mkdocs-material-9.5.17+insiders-4.53.6 (2024-04-05)</p> <ul> <li>Ensure working directory is set for projects when using projects plugin</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6970">#6970</a>: Incorrect relative paths in git submodules with projects plugin</li> </ul> <p>mkdocs-material-9.5.17+insiders-4.53.5 (2024-04-02)</p> <ul> <li>Fixed social plugin crashing when no colors are specified in palettes</li> </ul> <p>mkdocs-material-9.5.17 (2024-04-02)</p> <ul> <li>Updated Serbian translations</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7003">#7003</a>: Confusing keyboard interaction for palette toggle</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7001">#7001</a>: Blog posts now show time by default (9.5.16 regression)</li> <li>Fixed edge case in backport of social plugin font loading logic</li> </ul> <p>mkdocs-material-9.5.16+insiders-4.53.4 (2024-03-31)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6973">#6973</a>: Escaping issue in tags extra files deprecation helper</li> </ul> <p>mkdocs-material-9.5.16 (2024-03-31)</p> <ul> <li>Updated Russian translations</li> <li>Improved error handling and reporting in social plugin</li> <li>Improved error handling and reporting in privacy plugin</li> <li>Fixed blog plugin not allowing to use time in format strings</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6983">#6983</a>: Social plugin crashes because of Google Fonts API change</li> </ul> <p>mkdocs-material-9.5.15+insiders-4.53.3 (2024-03-23)</p> <ul> <li>Added support for font variants in social plugin</li> <li>Improved resilience of font resolution in social plugin</li> <li>Fixed tag listing sometimes not being auto-populated</li> <li>Fixed tag listing scope not being correctly resolved</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6941">#6941</a>: Meta plugin adding duplicate entries</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6928">#6928</a>: Social plugin crashes for some fonts</li> </ul> <p>mkdocs-material-9.5.15 (2024-03-23)</p> <ul> <li>Reverted fix for transparent iframes (9.5.14)</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/6929">#6929</a>: Interference of social plugin and auto dark mode</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/3b592abc2108003defb716bc21519ee5ec91ae89"><code>3b592ab</code></a> Prepare 9.5.18 release</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/f028004c597bfe6d15da08b9296bd96523046c5e"><code>f028004</code></a> Merge pull request <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7045">#7045</a> from squidfunk/refactor/tooltip-positioning</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/29658ed9709601a3eda024ac51bd652a37d9c7f4"><code>29658ed</code></a> Merge branch 'master' into refactor/tooltip-positioning</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/851e5bb1941545a35c9a02954efa6380c671aeee"><code>851e5bb</code></a> Fixed rendering glitch when hovering contributor avatar</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/599193edfae0d5c879788115075ef7a1eef2e266"><code>599193e</code></a> Fixed overly long tooltips</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/e15518cfa588d3dfb8113c1ba90f2c0bc5c02fce"><code>e15518c</code></a> Refactored tooltips</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/4eb1a4393741b1ecf8019dd53292b7a4d02e16f5"><code>4eb1a43</code></a> Added missing CSS for highlight fix</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/5707773ce33d58aed0702232b93fadcd4d864765"><code>5707773</code></a> Updated dependencies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/9d33f8aaa6089708d5f4d377dfeb8e8c69e990d2"><code>9d33f8a</code></a> Fixed highlighted lines in code blocks being cutoff on mobile</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/cd086110bfd65eb6dfeed8c3a01f500e9cdb7468"><code>cd08611</code></a> Updated dependencies</li> <li>Additional commits viewable in <a href="https://github.com/squidfunk/mkdocs-material/compare/9.5.17...9.5.18">compare view</a></li> </ul> </details> <br /> Updates `pyright` from 1.1.358 to 1.1.359 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/RobertCraigie/pyright-python/commit/fbc68e1d908bcb14b1a6f9cf973ae7246c079878"><code>fbc68e1</code></a> [pyright updated to 1.1.359] Update Version (<a href="https://redirect.github.com/RobertCraigie/pyright-python/issues/264">#264</a>)</li> <li>See full diff in <a href="https://github.com/RobertCraigie/pyright-python/compare/v1.1.358...v1.1.359">compare view</a></li> </ul> </details> <br /> Updates `ruff` from 0.3.7 to 0.4.1 <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.4.1</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>invalid-hash-returned</code> (<code>PLE0309</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10961">#10961</a>)</li> <li>[<code>pylint</code>] Implement <code>invalid-index-returned</code> (<code>PLE0305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10962">#10962</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pylint</code>] Allow <code>NoReturn</code>-like functions for <code>__str__</code>, <code>__len__</code>, etc. (<code>PLE0307</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11017">#11017</a>)</li> <li>Parser: Use empty range when there's "gap" in token source (<a href="https://redirect.github.com/astral-sh/ruff/pull/11032">#11032</a>)</li> <li>[<code>ruff</code>] Ignore stub functions in <code>unused-async</code> (<code>RUF029</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11026">#11026</a>)</li> <li>Parser: Expect indented case block instead of match stmt (<a href="https://redirect.github.com/astral-sh/ruff/pull/11033">#11033</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/HenryAsa"><code>@HenryAsa</code></a></li> <li><a href="https://github.com/MithicSpirit"><code>@MithicSpirit</code></a></li> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> <li><a href="https://github.com/tibor-reiss"><code>@tibor-reiss</code></a></li> </ul> <h2>v0.4.0</h2> <h2>Changes</h2> <h3>A new, hand-written parser</h3> <p>Ruff's new parser is <strong>>2x faster</strong>, which translates to a <strong>20-40% speedup</strong> for all linting and formatting invocations. There's a lot to say about this exciting change, so check out the <a href="https://astral.sh/blog/ruff-v0.4.0">blog post</a> for more details!</p> <p>See <a href="https://redirect.github.com/astral-sh/ruff/pull/10036">#10036</a> for implementation details.</p> <h3>A new language server in Rust</h3> <p>With this release, we also want to highlight our new language server. <code>ruff server</code> is a Rust-powered language server that comes built-in with Ruff. It can be used with any editor that supports the <a href="https://microsoft.github.io/language-server-protocol/">Language Server Protocol</a> (LSP). It uses a multi-threaded, lock-free architecture inspired by <code>rust-analyzer</code> and it will open the door for a lot of exciting features. It’s also faster than our previous <a href="https://github.com/astral-sh/ruff-lsp">Python-based language server</a> -- but you probably guessed that already.</p> <p><code>ruff server</code> is only in alpha, but it has a lot of features that you can try out today:</p> <ul> <li>Lints Python files automatically and shows quick-fixes when available</li> <li>Formats Python files, with support for range formatting</li> <li>Comes with commands for quickly performing actions: <code>ruff.applyAutofix</code>, <code>ruff.applyFormat</code>, and <code>ruff.applyOrganizeImports</code></li> <li>Supports <code>source.fixAll</code> and <code>source.organizeImports</code> source actions</li> <li>Automatically reloads your project configuration when you change it</li> </ul> <p>To setup <code>ruff server</code> with your editor, refer to the <a href="https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/README.md">README.md</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>pycodestyle</code>] Do not trigger <code>E3</code> rules on <code>def</code>s following a function/method with a dummy body (<a href="https://redirect.github.com/astral-sh/ruff/pull/10704">#10704</a>)</li> <li>[<code>pylint</code>] Implement <code>invalid-bytes-returned</code> (<code>E0308</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10959">#10959</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.4.1</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>invalid-hash-returned</code> (<code>PLE0309</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10961">#10961</a>)</li> <li>[<code>pylint</code>] Implement <code>invalid-index-returned</code> (<code>PLE0305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10962">#10962</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pylint</code>] Allow <code>NoReturn</code>-like functions for <code>__str__</code>, <code>__len__</code>, etc. (<code>PLE0307</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11017">#11017</a>)</li> <li>Parser: Use empty range when there's "gap" in token source (<a href="https://redirect.github.com/astral-sh/ruff/pull/11032">#11032</a>)</li> <li>[<code>ruff</code>] Ignore stub functions in <code>unused-async</code> (<code>RUF029</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11026">#11026</a>)</li> <li>Parser: Expect indented case block instead of match stmt (<a href="https://redirect.github.com/astral-sh/ruff/pull/11033">#11033</a>)</li> </ul> <h2>0.4.0</h2> <h3>A new, hand-written parser</h3> <p>Ruff's new parser is <strong>>2x faster</strong>, which translates to a <strong>20-40% speedup</strong> for all linting and formatting invocations. There's a lot to say about this exciting change, so check out the <a href="https://astral.sh/blog/ruff-v0.4.0">blog post</a> for more details!</p> <p>See <a href="https://redirect.github.com/astral-sh/ruff/pull/10036">#10036</a> for implementation details.</p> <h3>A new language server in Rust</h3> <p>With this release, we also want to highlight our new language server. <code>ruff server</code> is a Rust-powered language server that comes built-in with Ruff. It can be used with any editor that supports the <a href="https://microsoft.github.io/language-server-protocol/">Language Server Protocol</a> (LSP). It uses a multi-threaded, lock-free architecture inspired by <code>rust-analyzer</code> and it will open the door for a lot of exciting features. It’s also faster than our previous <a href="https://github.com/astral-sh/ruff-lsp">Python-based language server</a> -- but you probably guessed that already.</p> <p><code>ruff server</code> is only in alpha, but it has a lot of features that you can try out today:</p> <ul> <li>Lints Python files automatically and shows quick-fixes when available</li> <li>Formats Python files, with support for range formatting</li> <li>Comes with commands for quickly performing actions: <code>ruff.applyAutofix</code>, <code>ruff.applyFormat</code>, and <code>ruff.applyOrganizeImports</code></li> <li>Supports <code>source.fixAll</code> and <code>source.organizeImports</code> source actions</li> <li>Automatically reloads your project configuration when you change it</li> </ul> <p>To setup <code>ruff server</code> with your editor, refer to the <a href="https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/README.md">README.md</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>pycodestyle</code>] Do not trigger <code>E3</code> rules on <code>def</code>s following a function/method with a dummy body (<a href="https://redirect.github.com/astral-sh/ruff/pull/10704">#10704</a>)</li> <li>[<code>pylint</code>] Implement <code>invalid-bytes-returned</code> (<code>E0308</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10959">#10959</a>)</li> <li>[<code>pylint</code>] Implement <code>invalid-length-returned</code> (<code>E0303</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/10963">#10963</a>)</li> <li>[<code>pylint</code>] Implement <code>self-cls-assignment</code> (<code>W0642</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9267">#9267</a>)</li> <li>[<code>pylint</code>] Omit stubs from <code>invalid-bool</code> and <code>invalid-str-return-type</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11008">#11008</a>)</li> <li>[<code>ruff</code>] New rule <code>unused-async</code> (<code>RUF029</code>) to detect unneeded <code>async</code> keywords on functions (<a href="https://redirect.github.com/astral-sh/ruff/pull/9966">#9966</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/0ff25a540c550d8d2f562844354f84eb292b9c4b"><code>0ff25a5</code></a> Bump version to 0.4.1 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11035">#11035</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/34873ec009952f74b6248e10222690364f65c9ac"><code>34873ec</code></a> Add a script to fuzz the parser (courtesy of <code>pysource-codegen</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/11015">#11015</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d3cd61f804bae7428c8bd3ac8d4a2b8bb3640e4c"><code>d3cd61f</code></a> Use empty range when there's "gap" in token source (<a href="https://redirect.github.com/astral-sh/ruff/issues/11032">#11032</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9b80cc09ee4f91c378308844d80106d201539e46"><code>9b80cc0</code></a> Select fewer ruff rules when linting Python files in <code>scripts/</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/11034">#11034</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9bb23b0a38bd0532dc70c018b99a1ad30774f31c"><code>9bb23b0</code></a> Expect indented case block instead of match stmt (<a href="https://redirect.github.com/astral-sh/ruff/issues/11033">#11033</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/06c248a126b403caa088f3fa6546f85b0ba2b1d5"><code>06c248a</code></a> [<code>ruff]</code> Ignore stub functions in <code>unused-async</code> (<code>RUF029</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/11026">#11026</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/27902b7130afed05c2d4c653592ff90db88e27dc"><code>27902b7</code></a> [<code>pylint</code>] Implement <code>invalid-index-returned</code> (<code>PLE0305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/10962">#10962</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/97acf1d59bd9f1ec4d842549921452aafc0229cc"><code>97acf1d</code></a> ENH: Bump <code>ruff</code> dependency versions to support the latest release of `v0.4.0...</li> <li><a href="https://github.com/astral-sh/ruff/commit/adf63d90139b9412edc65986b5b4b7a7e667301c"><code>adf63d9</code></a> [<code>pylint</code>] Implement <code>invalid-hash-returned</code> (<code>PLE0309</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/10961">#10961</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5d3c9f2637c4ec0c32cad22eae6c2fa39be74c6c"><code>5d3c9f2</code></a> <code>ruff server</code>: fix Neovim setup guide command (<a href="https://redirect.github.com/astral-sh/ruff/issues/11021">#11021</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.3.7...v0.4.1">compare view</a></li> </ul> </details> <br /> 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 <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details>
- Loading branch information