Commit 6d24709
⬆️ pip(deps-dev): Bump ruff from 0.0.270 to 0.0.280 (#84)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.270 to 0.0.280.
<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.279</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Rules</h3>
<ul>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's PYI026 by <a
href="https://github.com/LaBatata101"><code>@LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5844">astral-sh/ruff#5844</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI017</code>
by <a href="https://github.com/qdegraaf"><code>@qdegraaf</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5895">astral-sh/ruff#5895</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI036</code>
by <a href="https://github.com/density"><code>@density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5668">astral-sh/ruff#5668</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI041</code>
by <a href="https://github.com/density"><code>@density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5722">astral-sh/ruff#5722</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement
<code>os-path-getsize</code> and <code>os-path-get(a|m|c)-time</code>
(<code>PTH202-205</code>) by <a
href="https://github.com/sbrugman"><code>@sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5835">astral-sh/ruff#5835</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement
<code>path-constructor-default-argument</code> (<code>PTH201</code>) by
<a href="https://github.com/sbrugman"><code>@sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5833">astral-sh/ruff#5833</a></li>
<li>[<code>pandas-vet</code>] Implement constant series rule
(<code>PD101</code>) by <a
href="https://github.com/sbrugman"><code>@sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5802">astral-sh/ruff#5802</a></li>
<li>[<code>pylint</code>] Implement Pylint's
<code>consider-using-in</code> (<code>PLR1714</code>) by <a
href="https://github.com/tjkuson"><code>@tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5193">astral-sh/ruff#5193</a></li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-annotations</code>] Check for <code>Any</code> in
other types for <code>ANN401</code> by <a
href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5601">astral-sh/ruff#5601</a></li>
<li>[<code>flake8-bugbear</code>] Add autofix for B004 by <a
href="https://github.com/density"><code>@density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5788">astral-sh/ruff#5788</a></li>
<li>[<code>flake8-bugbear</code>] Remove <code>B904</code>'s lowercase
exemption by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5751">astral-sh/ruff#5751</a></li>
<li>[<code>flake8-use-pathlib</code>] extend PTH118 with
<code>os.sep</code> by <a
href="https://github.com/sbrugman"><code>@sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5935">astral-sh/ruff#5935</a></li>
<li>[<code>pyupgrade</code>] Expand scope of
<code>quoted-annotation</code> rule (<code>UP037</code>) by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5766">astral-sh/ruff#5766</a></li>
<li>[<code>pyupgrade</code>] Extend PEP 604 rewrites to support some
quoted annotations by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5725">astral-sh/ruff#5725</a></li>
<li>[<code>ruff</code>] Expand <code>RUF015</code> to include all
expression types by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5767">astral-sh/ruff#5767</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Consider single element subscript expr for implicit optional by <a
href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5717">astral-sh/ruff#5717</a></li>
<li>Ignore <code>Enum</code>-and-<code>str</code> subclasses for slots
enforcement by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5749">astral-sh/ruff#5749</a></li>
<li>Avoid removing raw strings in comparison fixes by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5755">astral-sh/ruff#5755</a></li>
<li>Fix nested calls to <code>sorted</code> with differing arguments by
<a href="https://github.com/density"><code>@density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5761">astral-sh/ruff#5761</a></li>
<li>Use unused variable detection to power
<code>incorrect-dict-iterator</code> by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5763">astral-sh/ruff#5763</a></li>
<li>Include alias when formatting import-from structs by <a
href="https://github.com/guillaumeLepape"><code>@guillaumeLepape</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5786">astral-sh/ruff#5786</a></li>
<li>Make <code>lint_only</code> aware of the source kind by <a
href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5876">astral-sh/ruff#5876</a></li>
<li>Restore <code>redefined-while-unused</code> violations in classes by
<a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5926">astral-sh/ruff#5926</a></li>
<li>Flatten nested tuples when fixing UP007 violations by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5724">astral-sh/ruff#5724</a></li>
<li>Ignore Jupyter Notebooks for <code>--add-noqa</code> by <a
href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5727">astral-sh/ruff#5727</a></li>
<li>Avoid checking <code>EXE001</code> and <code>EXE002</code> on WSL by
<a href="https://github.com/tjkuson"><code>@tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5735">astral-sh/ruff#5735</a></li>
<li>Properly group assignment targets by <a
href="https://github.com/MichaReiser"><code>@MichaReiser</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5728">astral-sh/ruff#5728</a></li>
<li>Avoid stack overflow for non-BitOr binary types by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5743">astral-sh/ruff#5743</a></li>
<li>Move function visit out of <code>Expr::Call</code> branches by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5772">astral-sh/ruff#5772</a></li>
<li>[B006] Add bytes to immutable types by <a
href="https://github.com/harupy"><code>@harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5776">astral-sh/ruff#5776</a></li>
<li>Format <code>SetComp</code> by <a
href="https://github.com/lkh42t"><code>@lkh42t</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5774">astral-sh/ruff#5774</a></li>
<li>Gate <code>runtime-import-in-type-checking-block</code>
(<code>TCH004</code>) behind enabled flag by <a
href="https://github.com/charliermarsh"><code>@charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5789">astral-sh/ruff#5789</a></li>
<li>perf: only compute start offset for overlong lines by <a
href="https://github.com/sbrugman"><code>@sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5811">astral-sh/ruff#5811</a></li>
<li>Change <code>pandas-use-of-dot-read-table</code> rule to emit only
when <code>read_table</code> is used on CSV data by <a
href="https://github.com/tjkuson"><code>@tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5807">astral-sh/ruff#5807</a></li>
<li>Do not fix <code>NamedTuple</code> calls containing both a list of
fields and keywords by <a
href="https://github.com/harupy"><code>@harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5799">astral-sh/ruff#5799</a></li>
<li>Ignore directories when collecting files to lint by <a
href="https://github.com/harupy"><code>@harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5775">astral-sh/ruff#5775</a></li>
<li>Add filename to <code>noqa</code> warnings by <a
href="https://github.com/sobolevn"><code>@sobolevn</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5856">astral-sh/ruff#5856</a></li>
<li>Handle io errors gracefully by <a
href="https://github.com/konstin"><code>@konstin</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5611">astral-sh/ruff#5611</a></li>
<li>Allow <code>respect_gitignore</code> when not in a git repo by <a
href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5937">astral-sh/ruff#5937</a></li>
</ul>
<h2>New Contributors</h2>
<!-- 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>
<h1>Breaking Changes</h1>
<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>
<li><code>_build</code></li>
<li><code>buck-out</code></li>
<li><code>build</code></li>
<li><code>dist</code></li>
<li><code>node_modules</code></li>
<li><code>venv</code></li>
</ul>
<p>Previously, the <code>.ipynb_checkpoints</code>, <code>.pyenv</code>,
<code>.pytest_cache</code>, and <code>.vscode</code> directories were
not
excluded by default. This change brings Ruff's default exclusions in
line with other tools like
Black.</p>
<h2>0.0.276</h2>
<h3>The <code>keep-runtime-typing</code> setting has been reinstated (<a
href="https://redirect.github.com/astral-sh/ruff/pull/5470">#5470</a>)</h3>
<p>The <code>keep-runtime-typing</code> setting has been reinstated with
revised semantics. This setting was
removed in <a
href="https://redirect.github.com/astral-sh/ruff/pull/4427">#4427</a>,
as it was equivalent to ignoring
the <code>UP006</code> and <code>UP007</code> rules via Ruff's standard
<code>ignore</code> mechanism.</p>
<p>Taking <code>UP006</code> (rewrite <code>List[int]</code> to
<code>list[int]</code>) as an example, the setting now behaves as
follows:</p>
<ul>
<li>On Python 3.7 and Python 3.8, setting <code>keep-runtime-typing =
true</code> will cause Ruff to ignore</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/86b6a3e1ad1b6af1381bb6e7fb1521cd5dd9c1be"><code>86b6a3e</code></a>
Remove nested f-string flag (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5966">#5966</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f5a2fb5b5d8b629cf93a5f3a10e70c294dc36ef4"><code>f5a2fb5</code></a>
Bump version to 0.0.280 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5965">#5965</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/94a004ee9ca56cac6f240f63f776ba361d1fa530"><code>94a004e</code></a>
Avoid collapsing <code>elif</code> and <code>else</code> branches during
import sorting (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5964">#5964</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/aaf7f362a14ab38bf53fc5273642f7d91558b3b5"><code>aaf7f36</code></a>
Create snake_case file if linter is Pylint (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5948">#5948</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2dcd9e2e9c7e0eadd8c063d00449b6961361eead"><code>2dcd9e2</code></a>
Remove unnecessary <code>check_deferred_assignments</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5963">#5963</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/40e9884353337d312a79f0486a68997779d2f275"><code>40e9884</code></a>
Move nonlocal-without-binding out of binding step (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5962">#5962</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9bbb0a5151f08322a744e64034960f7fe7b63bb2"><code>9bbb0a5</code></a>
Fix typo in documentation (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5961">#5961</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f1f89f2a7e8eeb16334d8f0a30dfb9ae45425bee"><code>f1f89f2</code></a>
Bump version to 0.0.279 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5949">#5949</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/196cc9b655a925fd6bb306e3bde5d5dc38b5bedf"><code>196cc9b</code></a>
Fix RustPython rev to main branch (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5950">#5950</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/972f9a9c1552e642b4d57dc5cf9428e9893bbd09"><code>972f9a9</code></a>
Fix formatting lambda with empty arguments (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5944">#5944</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.0.270...v0.0.280">compare
view</a></li>
</ul>
</details>
<br />
[](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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>1 parent 9339deb commit 6d24709
2 files changed
Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments