chore(deps-dev): Bump ruff from 0.5.0 to 0.6.1 in /schemas (#11199)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.0 to 0.6.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>0.6.1</h2> <h2>Release Notes</h2> <p>This is a hotfix release to address an issue with <code>ruff-pre-commit</code>. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has <a href="https://redirect.github.com/astral-sh/ruff-pre-commit/pull/96">now been fixed</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>fastapi</code>] Implement <code>fast-api-unused-path-parameter</code> (<code>FAST003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12638">#12638</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pylint</code>] Rename <code>too-many-positional</code> to <code>too-many-positional-arguments</code> (<code>R0917</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12905">#12905</a>)</li> </ul> <h3>Server</h3> <ul> <li>Fix crash when applying "fix-all" code-action to notebook cells (<a href="https://redirect.github.com/astral-sh/ruff/pull/12929">#12929</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>[<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12922">#12922</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/JonathanPlasse"><code>@JonathanPlasse</code></a></li> <li><a href="https://github.com/Matthieu-LAURENT39"><code>@Matthieu-LAURENT39</code></a></li> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/carljm"><code>@carljm</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> </ul> <h2>Install ruff 0.6.1</h2> <h3>Install prebuilt binaries via shell script</h3> <pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-installer.sh | sh </code></pre> <h3>Install prebuilt binaries via powershell script</h3> <pre lang="sh"><code>powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-installer.ps1 | iex" </code></pre> <h2>Download ruff 0.6.1</h2> <table> <thead> <tr> <th>File</th> <th>Platform</th> <th>Checksum</th> </tr> </thead> <tbody> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-aarch64-apple-darwin.tar.gz">ruff-aarch64-apple-darwin.tar.gz</a></td> <td>Apple Silicon macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-x86_64-apple-darwin.tar.gz">ruff-x86_64-apple-darwin.tar.gz</a></td> <td>Intel macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> </tbody> </table> <!-- 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.6.1</h2> <p>This is a hotfix release to address an issue with <code>ruff-pre-commit</code>. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has <a href="https://redirect.github.com/astral-sh/ruff-pre-commit/pull/96">now been fixed</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>fastapi</code>] Implement <code>fast-api-unused-path-parameter</code> (<code>FAST003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12638">#12638</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pylint</code>] Rename <code>too-many-positional</code> to <code>too-many-positional-arguments</code> (<code>R0917</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12905">#12905</a>)</li> </ul> <h3>Server</h3> <ul> <li>Fix crash when applying "fix-all" code-action to notebook cells (<a href="https://redirect.github.com/astral-sh/ruff/pull/12929">#12929</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>[<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12922">#12922</a>)</li> </ul> <h2>0.6.0</h2> <p>Check out the <a href="https://astral.sh/blog/ruff-v0.6.0">blog post</a> for a migration guide and overview of the changes!</p> <h3>Breaking changes</h3> <p>See also, the "Remapped rules" section which may result in disabled rules.</p> <ul> <li>Lint and format Jupyter Notebook by default (<a href="https://redirect.github.com/astral-sh/ruff/pull/12878">#12878</a>).</li> <li>Detect imports in <code>src</code> layouts by default for <code>isort</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12848">#12848</a>)</li> <li>The pytest rules <code>PT001</code> and <code>PT023</code> now default to omitting the decorator parentheses when there are no arguments (<a href="https://redirect.github.com/astral-sh/ruff/pull/12838">#12838</a>).</li> </ul> <h3>Deprecations</h3> <p>The following rules are now deprecated:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/pytest-missing-fixture-name-underscore/"><code>pytest-missing-fixture-name-underscore</code></a> (<code>PT004</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/pytest-incorrect-fixture-name-underscore/"><code>pytest-incorrect-fixture-name-underscore</code></a> (<code>PT005</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/"><code>unpacked-list-comprehension</code></a> (<code>UP027</code>)</li> </ul> <h3>Remapped rules</h3> <p>The following rules have been remapped to new rule codes:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/unnecessary-dict-comprehension-for-iterable/"><code>unnecessary-dict-comprehension-for-iterable</code></a>: <code>RUF025</code> to <code>C420</code></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="499c0bd875
"><code>499c0bd</code></a> Bump version to 0.6.1 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12937">#12937</a>)</li> <li><a href="4cb30b598f
"><code>4cb30b5</code></a> <code>N817</code> docs: refer to the correct setting (<a href="https://redirect.github.com/astral-sh/ruff/issues/12935">#12935</a>)</li> <li><a href="aba0d83c11
"><code>aba0d83</code></a> [<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/12922">#12922</a>)</li> <li><a href="c319414e54
"><code>c319414</code></a> Ignore blank line rules for docs formatting (<a href="https://redirect.github.com/astral-sh/ruff/issues/12934">#12934</a>)</li> <li><a href="ef1f6d98a0
"><code>ef1f6d9</code></a> Fix description of where the contributor list comes from in instructions for ...</li> <li><a href="b850b812de
"><code>b850b81</code></a> Use cell source code instead of the concatenated one (<a href="https://redirect.github.com/astral-sh/ruff/issues/12929">#12929</a>)</li> <li><a href="a87b27c075
"><code>a87b27c</code></a> [red-knot] Add support for relative imports (<a href="https://redirect.github.com/astral-sh/ruff/issues/12910">#12910</a>)</li> <li><a href="9b73532b11
"><code>9b73532</code></a> [<code>flake8-async</code>] Fix examples to use <code>async with</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12924">#12924</a>)</li> <li><a href="d8debb7a36
"><code>d8debb7</code></a> Simplify logic for <code>RUF027</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12907">#12907</a>)</li> <li><a href="bd4a947b29
"><code>bd4a947</code></a> [red-knot] Add symbol and definition for parameters (<a href="https://redirect.github.com/astral-sh/ruff/issues/12862">#12862</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.0...0.6.1">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.5.0&new-version=0.6.1)](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 will merge this PR once CI passes on it, as requested by @jaredlockhart. [//]: # (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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jared Lockhart <119884+jaredlockhart@users.noreply.github.com>
This commit is contained in:
Родитель
10a72ff137
Коммит
3397ee2c86
|
@ -55,7 +55,7 @@ def test_analysis_errors():
|
|||
)
|
||||
|
||||
analysis_errors = AnalysisErrors.parse_obj([ae0, ae1])
|
||||
assert type(analysis_errors) == AnalysisErrors
|
||||
assert type(analysis_errors) is AnalysisErrors
|
||||
assert len(analysis_errors.__root__) == 2
|
||||
analysis_errors.__root__.append(ae2)
|
||||
assert len(analysis_errors.__root__) == 3
|
||||
|
|
|
@ -53,7 +53,7 @@ def test_statistics():
|
|||
)
|
||||
|
||||
stats = Statistics.parse_obj([s0, s1])
|
||||
assert type(stats) == Statistics
|
||||
assert type(stats) is Statistics
|
||||
assert len(stats.__root__) == 2
|
||||
stats.__root__.append(s2)
|
||||
assert len(stats.__root__) == 3
|
||||
|
|
|
@ -868,29 +868,29 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"]
|
|||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.5.0"
|
||||
version = "0.6.1"
|
||||
description = "An extremely fast Python linter and code formatter, written in Rust."
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
files = [
|
||||
{file = "ruff-0.5.0-py3-none-linux_armv6l.whl", hash = "sha256:ee770ea8ab38918f34e7560a597cc0a8c9a193aaa01bfbd879ef43cb06bd9c4c"},
|
||||
{file = "ruff-0.5.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:38f3b8327b3cb43474559d435f5fa65dacf723351c159ed0dc567f7ab735d1b6"},
|
||||
{file = "ruff-0.5.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7594f8df5404a5c5c8f64b8311169879f6cf42142da644c7e0ba3c3f14130370"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:adc7012d6ec85032bc4e9065110df205752d64010bed5f958d25dbee9ce35de3"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d505fb93b0fabef974b168d9b27c3960714d2ecda24b6ffa6a87ac432905ea38"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9dc5cfd3558f14513ed0d5b70ce531e28ea81a8a3b1b07f0f48421a3d9e7d80a"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:db3ca35265de239a1176d56a464b51557fce41095c37d6c406e658cf80bbb362"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b1a321c4f68809fddd9b282fab6a8d8db796b270fff44722589a8b946925a2a8"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c4dfcd8d34b143916994b3876b63d53f56724c03f8c1a33a253b7b1e6bf2a7d"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81e5facfc9f4a674c6a78c64d38becfbd5e4f739c31fcd9ce44c849f1fad9e4c"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e589e27971c2a3efff3fadafb16e5aef7ff93250f0134ec4b52052b673cf988d"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2ffbc3715a52b037bcb0f6ff524a9367f642cdc5817944f6af5479bbb2eb50e"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:cd096e23c6a4f9c819525a437fa0a99d1c67a1b6bb30948d46f33afbc53596cf"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:46e193b36f2255729ad34a49c9a997d506e58f08555366b2108783b3064a0e1e"},
|
||||
{file = "ruff-0.5.0-py3-none-win32.whl", hash = "sha256:49141d267100f5ceff541b4e06552e98527870eafa1acc9dec9139c9ec5af64c"},
|
||||
{file = "ruff-0.5.0-py3-none-win_amd64.whl", hash = "sha256:e9118f60091047444c1b90952736ee7b1792910cab56e9b9a9ac20af94cd0440"},
|
||||
{file = "ruff-0.5.0-py3-none-win_arm64.whl", hash = "sha256:ed5c4df5c1fb4518abcb57725b576659542bdbe93366f4f329e8f398c4b71178"},
|
||||
{file = "ruff-0.5.0.tar.gz", hash = "sha256:eb641b5873492cf9bd45bc9c5ae5320648218e04386a5f0c264ad6ccce8226a1"},
|
||||
{file = "ruff-0.6.1-py3-none-linux_armv6l.whl", hash = "sha256:b4bb7de6a24169dc023f992718a9417380301b0c2da0fe85919f47264fb8add9"},
|
||||
{file = "ruff-0.6.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:45efaae53b360c81043e311cdec8a7696420b3d3e8935202c2846e7a97d4edae"},
|
||||
{file = "ruff-0.6.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:bc60c7d71b732c8fa73cf995efc0c836a2fd8b9810e115be8babb24ae87e0850"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2c7477c3b9da822e2db0b4e0b59e61b8a23e87886e727b327e7dcaf06213c5cf"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a0af7ab3f86e3dc9f157a928e08e26c4b40707d0612b01cd577cc84b8905cc9"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:392688dbb50fecf1bf7126731c90c11a9df1c3a4cdc3f481b53e851da5634fa5"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:5278d3e095ccc8c30430bcc9bc550f778790acc211865520f3041910a28d0024"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fe6d5f65d6f276ee7a0fc50a0cecaccb362d30ef98a110f99cac1c7872df2f18"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2e0dd11e2ae553ee5c92a81731d88a9883af8db7408db47fc81887c1f8b672e"},
|
||||
{file = "ruff-0.6.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d812615525a34ecfc07fd93f906ef5b93656be01dfae9a819e31caa6cfe758a1"},
|
||||
{file = "ruff-0.6.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:faaa4060f4064c3b7aaaa27328080c932fa142786f8142aff095b42b6a2eb631"},
|
||||
{file = "ruff-0.6.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:99d7ae0df47c62729d58765c593ea54c2546d5de213f2af2a19442d50a10cec9"},
|
||||
{file = "ruff-0.6.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9eb18dfd7b613eec000e3738b3f0e4398bf0153cb80bfa3e351b3c1c2f6d7b15"},
|
||||
{file = "ruff-0.6.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:c62bc04c6723a81e25e71715aa59489f15034d69bf641df88cb38bdc32fd1dbb"},
|
||||
{file = "ruff-0.6.1-py3-none-win32.whl", hash = "sha256:9fb4c4e8b83f19c9477a8745e56d2eeef07a7ff50b68a6998f7d9e2e3887bdc4"},
|
||||
{file = "ruff-0.6.1-py3-none-win_amd64.whl", hash = "sha256:c2ebfc8f51ef4aca05dad4552bbcf6fe8d1f75b2f6af546cc47cc1c1ca916b5b"},
|
||||
{file = "ruff-0.6.1-py3-none-win_arm64.whl", hash = "sha256:3bc81074971b0ffad1bd0c52284b22411f02a11a012082a76ac6da153536e014"},
|
||||
{file = "ruff-0.6.1.tar.gz", hash = "sha256:af3ffd8c6563acb8848d33cd19a69b9bfe943667f0419ca083f8ebe4224a3436"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -998,4 +998,4 @@ test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-it
|
|||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "c992469d0b2af9536694e55e037bfa0395ea2323e5176b135e033e149329fa14"
|
||||
content-hash = "84a93b5d8b343f0fa29f2541e37de9b14ff248c85e4d073bf4a9850fb3c5a143"
|
||||
|
|
|
@ -13,7 +13,7 @@ pydantic = "^1.10.7"
|
|||
polyfactory = "^2.7.2"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
ruff = ">=0.5.0,<0.5.1"
|
||||
ruff = ">=0.5.0,<0.6.2"
|
||||
black = ">=23.3,<25.0"
|
||||
pytest = "^7.3.1"
|
||||
twine = "^4.0.2"
|
||||
|
|
Загрузка…
Ссылка в новой задаче