Skip to content

Commit a41a437

Browse files
Bump ruff from 0.1.7 to 0.4.9 (#157)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.7 to 0.4.9. <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.9</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>consider-dict-items</code> (<code>C0206</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11688">#11688</a>)</li> <li>[<code>refurb</code>] Implement <code>repeated-global</code> (<code>FURB154</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11187">#11187</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pycodestyle</code>] Adapt fix for <code>E203</code> to work identical to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/10999">#10999</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Fix formatter instability for lines only consisting of zero-width characters (<a href="https://redirect.github.com/astral-sh/ruff/pull/11748">#11748</a>)</li> </ul> <h3>Server</h3> <ul> <li>Add supported commands in server capabilities (<a href="https://redirect.github.com/astral-sh/ruff/pull/11850">#11850</a>)</li> <li>Use real file path when available in <code>ruff server</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11800">#11800</a>)</li> <li>Improve error message when a command is run on an unavailable document (<a href="https://redirect.github.com/astral-sh/ruff/pull/11823">#11823</a>)</li> <li>Introduce the <code>ruff.printDebugInformation</code> command (<a href="https://redirect.github.com/astral-sh/ruff/pull/11831">#11831</a>)</li> <li>Tracing system now respects log level and trace level, with options to log to a file (<a href="https://redirect.github.com/astral-sh/ruff/pull/11747">#11747</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Handle non-printable characters in diff view (<a href="https://redirect.github.com/astral-sh/ruff/pull/11687">#11687</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>refurb</code>] Avoid suggesting starmap when arguments are used outside call (<code>FURB140</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11830">#11830</a>)</li> <li>[<code>flake8-bugbear</code>] Avoid panic in <code>B909</code> when checking large loop blocks (<a href="https://redirect.github.com/astral-sh/ruff/pull/11772">#11772</a>)</li> <li>[<code>refurb</code>] Fix misbehavior of <code>operator.itemgetter</code> when getter param is a tuple (<code>FURB118</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11774">#11774</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/Embers-of-the-Fire"><code>@​Embers-of-the-Fire</code></a></li> <li><a href="https://github.com/LukasMasuch"><code>@​LukasMasuch</code></a></li> <li><a href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li> <li><a href="https://github.com/Peiffap"><code>@​Peiffap</code></a></li> <li><a href="https://github.com/Philipp-Thiel"><code>@​Philipp-Thiel</code></a></li> <li><a href="https://github.com/alex-700"><code>@​alex-700</code></a></li> <li><a href="https://github.com/carljm"><code>@​carljm</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/max-muoto"><code>@​max-muoto</code></a></li> <li><a href="https://github.com/pilleye"><code>@​pilleye</code></a></li> <li><a href="https://github.com/renovate"><code>@​renovate</code></a></li> <li><a href="https://github.com/snowsignal"><code>@​snowsignal</code></a></li> <li><a href="https://github.com/starsep"><code>@​starsep</code></a></li> <li><a href="https://github.com/yairp03"><code>@​yairp03</code></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.9</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>consider-dict-items</code> (<code>C0206</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11688">#11688</a>)</li> <li>[<code>refurb</code>] Implement <code>repeated-global</code> (<code>FURB154</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11187">#11187</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pycodestyle</code>] Adapt fix for <code>E203</code> to work identical to <code>ruff format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/10999">#10999</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Fix formatter instability for lines only consisting of zero-width characters (<a href="https://redirect.github.com/astral-sh/ruff/pull/11748">#11748</a>)</li> </ul> <h3>Server</h3> <ul> <li>Add supported commands in server capabilities (<a href="https://redirect.github.com/astral-sh/ruff/pull/11850">#11850</a>)</li> <li>Use real file path when available in <code>ruff server</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11800">#11800</a>)</li> <li>Improve error message when a command is run on an unavailable document (<a href="https://redirect.github.com/astral-sh/ruff/pull/11823">#11823</a>)</li> <li>Introduce the <code>ruff.printDebugInformation</code> command (<a href="https://redirect.github.com/astral-sh/ruff/pull/11831">#11831</a>)</li> <li>Tracing system now respects log level and trace level, with options to log to a file (<a href="https://redirect.github.com/astral-sh/ruff/pull/11747">#11747</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Handle non-printable characters in diff view (<a href="https://redirect.github.com/astral-sh/ruff/pull/11687">#11687</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>refurb</code>] Avoid suggesting starmap when arguments are used outside call (<code>FURB140</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11830">#11830</a>)</li> <li>[<code>flake8-bugbear</code>] Avoid panic in <code>B909</code> when checking large loop blocks (<a href="https://redirect.github.com/astral-sh/ruff/pull/11772">#11772</a>)</li> <li>[<code>refurb</code>] Fix misbehavior of <code>operator.itemgetter</code> when getter param is a tuple (<code>FURB118</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11774">#11774</a>)</li> </ul> <h2>0.4.8</h2> <h3>Performance</h3> <ul> <li>Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (<a href="https://redirect.github.com/astral-sh/ruff/pull/11457">#11457</a>)</li> </ul> <h3>Preview features</h3> <ul> <li>[<code>flake8-bugbear</code>] Implement <code>return-in-generator</code> (<code>B901</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11644">#11644</a>)</li> <li>[<code>flake8-pyi</code>] Implement <code>PYI063</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11699">#11699</a>)</li> <li>[<code>pygrep_hooks</code>] Check blanket ignores via file-level pragmas (<code>PGH004</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11540">#11540</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pyupgrade</code>] Update <code>UP035</code> for Python 3.13 and the latest version of <code>typing_extensions</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11693">#11693</a>)</li> <li>[<code>numpy</code>] Update <code>NPY001</code> rule for NumPy 2.0 (<a href="https://redirect.github.com/astral-sh/ruff/pull/11735">#11735</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/4f49e918a9154de16145d77217a4af2b8ce38297"><code>4f49e91</code></a> Bump version to v0.4.9 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11872">#11872</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d681a45b08e20a77a42ae74d5c0f91fd0482079c"><code>d681a45</code></a> Make <code>ruff_db</code> a required crate for <code>ruff_python_semantic</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/11874">#11874</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/89bb07c251474399607de9d278cb70902c8a0106"><code>89bb07c</code></a> UPDATE latest supported versions to 3.13 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11870">#11870</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fe462b30e7af2a089016e45c3faa7dc2ea2ea3ae"><code>fe462b3</code></a> Update Python compatibility to 3.13 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11861">#11861</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c5bc368e430a30cb1d58d130c3d8eb2a1fe34d0a"><code>c5bc368</code></a> [red-knot] Improve <code>Vfs</code> and <code>FileSystem</code> documentation (<a href="https://redirect.github.com/astral-sh/ruff/issues/11856">#11856</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/73370fe7982c789ae91a95fba3e45cc6a054849e"><code>73370fe</code></a> Use <code>starts_with('/')</code> instead of <code>is_absolute</code> to avoid platform specific AP...</li> <li><a href="https://github.com/astral-sh/ruff/commit/22b6488550b9cb268eafe5161269952aca0df73b"><code>22b6488</code></a> red-knot: Add directory support to <code>MemoryFileSystem</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/11825">#11825</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d4dd96d1f4a78d75e598c9cdfb778c88c21742d7"><code>d4dd96d</code></a> red-knot: <code>source_text</code>, <code>line_index</code>, and <code>parsed_module</code> queries (<a href="https://redirect.github.com/astral-sh/ruff/issues/11822">#11822</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/efbf7b14b5060475f0a0bf7753ff8426e2e3b875"><code>efbf7b1</code></a> red-knot[salsa part 2]: Setup semantic DB and Jar (<a href="https://redirect.github.com/astral-sh/ruff/issues/11837">#11837</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9dc226be9793592262ac9fc6d8fab195f33f36b2"><code>9dc226b</code></a> Add supported commands in server capabilities (<a href="https://redirect.github.com/astral-sh/ruff/issues/11850">#11850</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.7...v0.4.9">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.7&new-version=0.4.9)](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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan VanBuren <svanburen@buf.build>
1 parent 7851763 commit a41a437

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

Pipfile.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protovalidate/internal/string_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class StringFormat:
4040
def __init__(self, locale: str):
4141
self.locale = locale
4242

43-
def format(self, fmt: celtypes.Value, args: celtypes.Value) -> celpy.Result: # noqa: A003
43+
def format(self, fmt: celtypes.Value, args: celtypes.Value) -> celpy.Result:
4444
if not isinstance(fmt, celtypes.StringType):
4545
return celpy.native_to_cel(celpy.new_error("format() requires a string as the first argument"))
4646
if not isinstance(args, celtypes.ListType):

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ line-length = 120
3232
[tool.ruff]
3333
target-version = "py38"
3434
line-length = 120
35-
select = [
35+
lint.select = [
3636
"A",
3737
"ARG",
3838
"B",
@@ -59,7 +59,7 @@ select = [
5959
"W",
6060
"YTT",
6161
]
62-
ignore = [
62+
lint.ignore = [
6363
# Allow boolean positional values in function calls, like `dict.get(..., True)`.
6464
"FBT003",
6565
# Ignore complexity
@@ -71,17 +71,17 @@ ignore = [
7171
# Ignore magic values - in this library, most are obvious in context.
7272
"PLR2004",
7373
]
74-
unfixable = [
74+
lint.unfixable = [
7575
# Don't autofix unused imports.
7676
"F401",
7777
]
7878

79-
[tool.ruff.isort]
79+
[tool.ruff.lint.isort]
8080
known-first-party = ["protovalidate", "buf"]
8181

82-
[tool.ruff.flake8-tidy-imports]
82+
[tool.ruff.lint.flake8-tidy-imports]
8383
ban-relative-imports = "all"
8484

85-
[tool.ruff.per-file-ignores]
85+
[tool.ruff.lint.per-file-ignores]
8686
# Tests can use magic values, assertions, and relative imports.
8787
"tests/**/*" = ["PLR2004", "S101", "TID252"]

0 commit comments

Comments
 (0)