Skip to content

Commit

Permalink
Bump ruff from 0.0.287 to 0.0.288 (#91)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.287 to 0.0.288.
<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.288</h2>
<h2>What's Changed</h2>
<h3>Breaking Changes</h3>
<ul>
<li>Remove emoji identifier support by <a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7212">astral-sh/ruff#7212</a></li>
<li>Location agnostic GitLab fingerprints by <a
href="https://github.com/gregersn"><code>@​gregersn</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7203">astral-sh/ruff#7203</a></li>
</ul>
<h3>Rules</h3>
<ul>
<li>[<code>ruff</code>]
<ul>
<li><code>RUF001</code>: Remove autofix for ambiguous unicode rule by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7168">astral-sh/ruff#7168</a></li>
</ul>
</li>
</ul>
<h3>Settings</h3>
<ul>
<li>[<code>flake8-self</code>]
<ul>
<li><code>SLF001</code>: Add <code>extend-ignore-names</code> option by
<a href="https://github.com/jaap3"><code>@​jaap3</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7194">astral-sh/ruff#7194</a></li>
</ul>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>[<code>flake8-bugbear</code>]
<ul>
<li><code>B006</code>: Add newline if fix is at end-of-file by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7090">astral-sh/ruff#7090</a></li>
<li><code>B006</code>: Fix function docstring followed by whitespace but
no newline by <a
href="https://github.com/zanieb"><code>@​zanieb</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7160">astral-sh/ruff#7160</a></li>
<li><code>B009</code>: Parenthesize expressions when converting to
attribute access by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7091">astral-sh/ruff#7091</a></li>
<li><code>B009</code>, <code>B010</code>: Fix <code>getattr</code> calls
on <code>int</code> literals by <a
href="https://github.com/density"><code>@​density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7057">astral-sh/ruff#7057</a></li>
<li><code>B013</code>: Supported starred exceptions in length-one tuple
detection by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7080">astral-sh/ruff#7080</a></li>
<li><code>B013</code>: Insert required space when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7148">astral-sh/ruff#7148</a></li>
</ul>
</li>
<li>[<code>flake8-comprehensions</code>]
<ul>
<li><code>C402</code>: Add required space when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7152">astral-sh/ruff#7152</a></li>
<li><code>C404</code> Add required space when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7185">astral-sh/ruff#7185</a></li>
<li><code>C416</code> Add required space to fix by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7204">astral-sh/ruff#7204</a></li>
<li><code>C417</code>: Support length-2 lists in dictionary
comprehension rewrites by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7081">astral-sh/ruff#7081</a></li>
<li><code>C417</code>: Parenthesize targets if necessary by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7189">astral-sh/ruff#7189</a></li>
</ul>
</li>
<li>[<code>flake8-return</code>]
<ul>
<li><code>RET504</code>: Add space after return when inlining number by
<a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7116">astral-sh/ruff#7116</a></li>
</ul>
</li>
<li>[<code>flake8-simplify</code>]
<ul>
<li><code>SIM105</code>: Avoid attempting to fix violations with
multi-statement lines by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7191">astral-sh/ruff#7191</a></li>
<li><code>SIM105</code> Avoid inserting an extra newline for fixes by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7221">astral-sh/ruff#7221</a></li>
<li><code>SIM118</code>: Add required space when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7150">astral-sh/ruff#7150</a></li>
<li><code>SIM118</code>: delete <code>.keys()</code> rather than replace
expression by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7223">astral-sh/ruff#7223</a></li>
<li><code>SIM210</code>: Retain parentheses when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7118">astral-sh/ruff#7118</a></li>
<li><code>SIM222</code>: Add parentheses when simplifying conditions by
<a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7117">astral-sh/ruff#7117</a></li>
<li><code>SIM300</code>: Add required space when fixing by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7167">astral-sh/ruff#7167</a></li>
</ul>
</li>
<li>[<code>flake8-pytest-style</code>]
<ul>
<li><code>PT018</code>: Split within <code>not</code>, rather than
outside of <code>not</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7151">astral-sh/ruff#7151</a></li>
</ul>
</li>
<li>[<code>flynt</code>]
<ul>
<li><code>FLY002</code>: Add required space for fixes by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7222">astral-sh/ruff#7222</a></li>
</ul>
</li>
<li>[<code>numpy</code>]
<ul>
<li><code>NPY001</code>: Avoid attempting to fix with overridden
builtins by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7187">astral-sh/ruff#7187</a></li>
<li><code>NPY003</code>: Use symbol import for replacement by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7083">astral-sh/ruff#7083</a></li>
</ul>
</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/BREAKING_CHANGES.md">ruff's
changelog</a>.</em></p>
<blockquote>
<h2>0.0.288</h2>
<h3>Remove support for emoji identifiers (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7212">#7212</a>)</h3>
<p>Previously, Ruff supported the non-standard compliant emoji
identifiers e.g. <code>📦 = 1</code>.
We decided to remove this non-standard language extension, and Ruff now
reports syntax errors for emoji identifiers in your code, the same as
CPython.</p>
<h3>Improved GitLab fingerprints (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7203">#7203</a>)</h3>
<p>GitLab uses fingerprints to identify new, existing, or fixed
violations. Previously, Ruff included the violation's position in the
fingerprint. Using the location has the downside that changing any code
before the violation causes the fingerprint to change, resulting in
GitLab reporting one fixed and one new violation even though it is a
pre-existing violation.</p>
<p>Ruff now uses a more stable location-agnostic fingerprint to minimize
that existing violations incorrectly get marked as fixed and re-reported
as new violations.</p>
<p>Expect GitLab to report each pre-existing violation in your project
as fixed and a new violation in your Ruff upgrade PR.</p>
<h2>0.0.283 / 0.284</h2>
<h3>The target Python version now defaults to 3.8 instead of 3.10 (<a
href="https://redirect.github.com/astral-sh/ruff/pull/6397">#6397</a>)</h3>
<p>Previously, when a target Python version was not specified, Ruff
would use a default of Python 3.10. However, it is safer to default to
an <em>older</em> Python version to avoid assuming the availability of
new features. We now default to the oldest supported Python version
which is currently Python 3.8.</p>
<p>(We still support Python 3.7 but since <a
href="https://devguide.python.org/versions/#unsupported-versions">it has
reached EOL</a> we've decided not to make it the default here.)</p>
<p>Note this change was announced in 0.0.283 but not active until
0.0.284.</p>
<h2>0.0.277</h2>
<h3><code>.ipynb_checkpoints</code>, <code>.pyenv</code>,
<code>.pytest_cache</code>, and <code>.vscode</code> are now excluded by
default (<a
href="https://redirect.github.com/astral-sh/ruff/pull/5513">#5513</a>)</h3>
<p>Ruff maintains a list of default exclusions, which now consists of
the following patterns:</p>
<ul>
<li><code>.bzr</code></li>
<li><code>.direnv</code></li>
<li><code>.eggs</code></li>
<li><code>.git</code></li>
<li><code>.git-rewrite</code></li>
<li><code>.hg</code></li>
<li><code>.ipynb_checkpoints</code></li>
<li><code>.mypy_cache</code></li>
<li><code>.nox</code></li>
<li><code>.pants.d</code></li>
<li><code>.pyenv</code></li>
<li><code>.pytest_cache</code></li>
<li><code>.pytype</code></li>
<li><code>.ruff_cache</code></li>
<li><code>.svn</code></li>
<li><code>.tox</code></li>
<li><code>.venv</code></li>
<li><code>.vscode</code></li>
<li><code>__pypackages__</code></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/7c9bbcf4e2d173bde625aed26a0056d354f54545"><code>7c9bbcf</code></a>
Bump version to 0.0.288 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7271">#7271</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/babf8d718e8a2f0453eb52d3b41bb4189cd33188"><code>babf8d7</code></a>
Fix D204 when there's a semicolon after a docstring (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7174">#7174</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/878813f27758755f99c0ff9c98fc433d3ab6d6f9"><code>878813f</code></a>
Bump tj-actions/changed-files from 38 to 39 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7267">#7267</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/71c8a02ebd6677ff77bfed7fc82dc0a0c9c771f8"><code>71c8a02</code></a>
Bump actions/checkout from 3 to 4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7266">#7266</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3a2c3a7398d7842024965873a50d92bac9fc7296"><code>3a2c3a7</code></a>
Format empty lines in stub files like black's preview style (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7206">#7206</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/7440e54ec67bf7212f13365f715f8856186cc3a4"><code>7440e54</code></a>
Avoid allocating in lex_decimal (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7252">#7252</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0357e801ed344c790bdf6e95008108577ebf3427"><code>0357e80</code></a>
Avoid F401 panic with noqa import name (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7260">#7260</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/69d0caabe7d6e154a7846b043c55bb5c3c028b78"><code>69d0caa</code></a>
fix D417 error with function docstrings with dashed lines (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7251">#7251</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9cb5ce750e9dead53eb8235e8cfb7cff653a1cd2"><code>9cb5ce7</code></a>
Remove IO based lints from linter benchmark (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7240">#7240</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0a07a2ca62af13e51b924f4e7dd65b010c9a4fe9"><code>0a07a2c</code></a>
Extract string part and normalized string (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7219">#7219</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.0.287...v0.0.288">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.287&new-version=0.0.288)](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
github-actions[bot] authored Sep 12, 2023
2 parents 8b414d3 + e599dc4 commit ad01dfe
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 @@ -15,7 +15,7 @@ boto3 = "^1.26.163"
pytest = "^7.4.0"
moto = "^4.1.12"
black = "^23.3.0"
ruff = ">=0.0.275,<0.0.288"
ruff = ">=0.0.275,<0.0.289"
yapf = "^0.40.1"

[build-system]
Expand Down

0 comments on commit ad01dfe

Please sign in to comment.