Skip to content

Commit

Permalink
Bump ruff from 0.0.280 to 0.0.281 (#82)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.280 to 0.0.281.
<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.0.281</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<p>See the <a href="https://astral.sh/blog/ruff-v0.0.281">release blog
post</a> for more, including detailed descriptions of any newly added
rules.</p>
<h3>New rules</h3>
<ul>
<li>[<code>flake8-pyi</code>] Implement <code>PYI018</code> by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6018">astral-sh/ruff#6018</a></li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI047</code> by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6134">astral-sh/ruff#6134</a></li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI049</code> by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6136">astral-sh/ruff#6136</a></li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI056</code> by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5959">astral-sh/ruff#5959</a></li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI046</code> by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6098">astral-sh/ruff#6098</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement <code>glob</code>
(<code>PTH207</code>) by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5939">astral-sh/ruff#5939</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement
<code>os-sep-split</code> (<code>PTH206</code>) by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5936">astral-sh/ruff#5936</a></li>
<li>[<code>pycodestyle</code>] Implement <code>E241</code> and
<code>E242</code> (tab/multiple ws after commas) by <a
href="https://github.com/akx"><code>@​akx</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6094">astral-sh/ruff#6094</a></li>
<li>[<code>pylint</code>] Implement <code>self-assigning-variable</code>
(<code>W0127</code>) by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6015">astral-sh/ruff#6015</a></li>
<li>[<code>pylint</code>] Implement <code>eq-without-hash</code> rule
(PLW1641) by <a href="https://github.com/jelly"><code>@​jelly</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5955">astral-sh/ruff#5955</a></li>
<li>[<code>pylint</code>] Implement
<code>subprocess-popen-preexec-fn</code> (<code>W1509</code>) by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5978">astral-sh/ruff#5978</a></li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Extends <code>B002</code> to detect
unary prefix decrement operators by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5998">astral-sh/ruff#5998</a></li>
<li>[<code>flake8-pytest-style</code>] Avoid raising PT012 for simple
<code>with</code> statements by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6081">astral-sh/ruff#6081</a></li>
<li>[<code>flake8-pytest-style</code>] Allow pytest.raises body to
contain a single func or class definition by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6083">astral-sh/ruff#6083</a></li>
<li>[<code>flake8-simplify</code>] Extend SIM118 with <code>not
in</code> by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5995">astral-sh/ruff#5995</a></li>
<li>[<code>perflint</code>] Skip <code>PERF203</code> violations for
multi-statement loops by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6145">astral-sh/ruff#6145</a></li>
<li>[<code>pyupgrade</code>] Add support for <code>int</code>,
<code>float</code>, <code>bool</code> in <code>UP018</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6013">astral-sh/ruff#6013</a></li>
<li>[<code>tryceratops</code>] Add suggested fix for <code>TRY201</code>
by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6008">astral-sh/ruff#6008</a></li>
</ul>
<h3>Settings</h3>
<ul>
<li>Allow specification of <code>logging.Logger</code> re-exports via
<code>logger-objects</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5750">astral-sh/ruff#5750</a></li>
<li>Set default <code>max-complexity</code> to 10 for empty McCabe
settings by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6073">astral-sh/ruff#6073</a></li>
<li>[<code>pep8-naming</code>]: New config option
<code>extend-ignore-names</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/6169">astral-sh/ruff#6169</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid raising <code>UP032</code> if <code>format</code> call
arguments contain multiline expressions by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5971">astral-sh/ruff#5971</a></li>
<li>Fix <code>F507</code> false positive by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5986">astral-sh/ruff#5986</a></li>
<li>Fix logging rules with whitespace around dot by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6022">astral-sh/ruff#6022</a></li>
<li>Ignore end-of-line comments when dirtying if-with-same-arms branches
by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6031">astral-sh/ruff#6031</a></li>
<li>Avoid treating <code>Literal</code> members as expressions with
<code>__future__</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6032">astral-sh/ruff#6032</a></li>
<li>Avoid refactoring <code>x[:1]</code>-like slices in RUF015 by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6150">astral-sh/ruff#6150</a></li>
<li>Avoid key-in-dict violations for <code>self</code> accesses by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6165">astral-sh/ruff#6165</a></li>
<li>Avoid falsely marking non-submodules as submodule aliases by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6182">astral-sh/ruff#6182</a></li>
<li>Flag <code>[</code> as an invalid noqa suffix by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5982">astral-sh/ruff#5982</a></li>
<li>Ignore some common builtin overrides on standard library subclasses
by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6074">astral-sh/ruff#6074</a></li>
<li>Avoid A003 violations for explicitly overridden methods by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6076">astral-sh/ruff#6076</a></li>
<li>Include file permissions in key for cached files by <a
href="https://github.com/zanieb"><code>@​zanieb</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5901">astral-sh/ruff#5901</a></li>
<li>Ignore <code>explicit-string-concatenation</code> on single line by
<a href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6028">astral-sh/ruff#6028</a></li>
<li>Fix <code>SIM102</code> to handle indented <code>elif</code> by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6072">astral-sh/ruff#6072</a></li>
<li>Raise <code>PTH201</code> for <code>Path(&quot;&quot;)</code> by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/6095">astral-sh/ruff#6095</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/dbd60b2cf51282fbc3b0f866e566fda7b38514ef"><code>dbd60b2</code></a>
Bump version to 0.0.281 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6195">#6195</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/7eb2ba47cc9d8ccedc7860b244a8ce3d0169f160"><code>7eb2ba4</code></a>
Add empty line after <code>import</code> block (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6200">#6200</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/cb34e6d32215f444f310cbef8f7ac0f69628dd23"><code>cb34e6d</code></a>
Avoid parenthesizing comprehension element (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6198">#6198</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0274de1fff1c8a6617a656117d74fe7979bfe003"><code>0274de1</code></a>
Preserve backslash in raw string literal (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6152">#6152</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a540933bc9c6ccdc5423c47a129c972c2edba678"><code>a540933</code></a>
Print log when formatter ecosystem checks fail (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6187">#6187</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/311a1f9ec4908954d3f8b64be8476d01bf67abde"><code>311a1f9</code></a>
Remove <code>len</code> from <code>JoinCommaSeparatedBuilder</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6185">#6185</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b95fc6d1621a3fc868b4fe486b02a4d30e0e4a02"><code>b95fc6d</code></a>
Format bytes string (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6166">#6166</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/de898c52eb5ed8b7ed1d4f96508a773b42a7ee86"><code>de898c5</code></a>
Avoid falsely marking non-submodules as submodule aliases (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6182">#6182</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/76741cac77111d6243f12706d1f1f565e0337527"><code>76741ca</code></a>
Add <code>global</code> and <code>nonlocal</code> formatting (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6170">#6170</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5d9814d84d979d94eff346cc177fdd0fab1b4914"><code>5d9814d</code></a>
Remove parentheses around some walrus operators (<a
href="https://redirect.github.com/astral-sh/ruff/issues/6173">#6173</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.0.280...v0.0.281">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.0.280&new-version=0.0.281)](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 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
github-actions[bot] authored Jul 31, 2023
2 parents ce8fe1e + 4d4f5ac commit 4d96617
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ optional = true


[tool.poetry.group.linters.dependencies]
ruff = '>=0.0.265,<0.0.281'
ruff = '>=0.0.265,<0.0.282'


[tool.poetry.group.tests]
Expand Down

0 comments on commit 4d96617

Please sign in to comment.