Skip to content

Commit

Permalink
Bump ruff from 0.1.15 to 0.2.0 (#68)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.15 to 0.2.0.
<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.2.0</h2>
<p>Check out the <a href="https://astral.sh/blog/ruff-v0.2.0">blog
post</a> for a migration guide and overview of the changes!</p>
<h2>Changes</h2>
<h3>Breaking changes</h3>
<ul>
<li>The <code>NURSERY</code> selector cannot be used anymore</li>
<li>Legacy selection of nursery rules by exact codes is no longer
allowed without preview enabled</li>
</ul>
<p>See also, the &quot;Remapped rules&quot; section which may result in
disabled rules.</p>
<h3>Deprecations</h3>
<p>The following rules are now deprecated:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-self/"><code>missing-type-self</code></a>
(<code>ANN101</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-cls/"><code>missing-type-cls</code></a>
(<code>ANN102</code>)</li>
</ul>
<p>The following command line options are now deprecated:</p>
<ul>
<li><code>--show-source</code>; use <code>--output-format full</code>
instead</li>
<li><code>--no-show-source</code>; use <code>--output-format
concise</code> instead</li>
<li><code>--output-format text</code>; use <code>full</code> or
<code>concise</code> instead</li>
</ul>
<p>The following settings have moved and the previous name is
deprecated:</p>
<ul>
<li><code>ruff.allowed-confusables</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_allowed-confusables"><code>ruff.lint.allowed-confusables</code></a></li>
<li><code>ruff.dummy-variable-rgx</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_dummy-variable-rgx"><code>ruff.lint.dummy-variable-rgx</code></a></li>
<li><code>ruff.explicit-preview-rules</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_explicit-preview-rules"><code>ruff.lint.explicit-preview-rules</code></a></li>
<li><code>ruff.extend-fixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-fixable"><code>ruff.lint.extend-fixable</code></a></li>
<li><code>ruff.extend-ignore</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-ignore"><code>ruff.lint.extend-ignore</code></a></li>
<li><code>ruff.extend-per-file-ignores</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-per-file-ignores"><code>ruff.lint.extend-per-file-ignores</code></a></li>
<li><code>ruff.extend-safe-fixes</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-safe-fixes"><code>ruff.lint.extend-safe-fixes</code></a></li>
<li><code>ruff.extend-select</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-select"><code>ruff.lint.extend-select</code></a></li>
<li><code>ruff.extend-unfixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-unfixable"><code>ruff.lint.extend-unfixable</code></a></li>
<li><code>ruff.extend-unsafe-fixes</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-unsafe-fixes"><code>ruff.lint.extend-unsafe-fixes</code></a></li>
<li><code>ruff.external</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_external"><code>ruff.lint.external</code></a></li>
<li><code>ruff.fixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_fixable"><code>ruff.lint.fixable</code></a></li>
<li><code>ruff.flake8-annotations</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-annotations"><code>ruff.lint.flake8-annotations</code></a></li>
<li><code>ruff.flake8-bandit</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-bandit"><code>ruff.lint.flake8-bandit</code></a></li>
<li><code>ruff.flake8-bugbear</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-bugbear"><code>ruff.lint.flake8-bugbear</code></a></li>
<li><code>ruff.flake8-builtins</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-builtins"><code>ruff.lint.flake8-builtins</code></a></li>
<li><code>ruff.flake8-comprehensions</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-comprehensions"><code>ruff.lint.flake8-comprehensions</code></a></li>
<li><code>ruff.flake8-copyright</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-copyright"><code>ruff.lint.flake8-copyright</code></a></li>
<li><code>ruff.flake8-errmsg</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-errmsg"><code>ruff.lint.flake8-errmsg</code></a></li>
<li><code>ruff.flake8-gettext</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-gettext"><code>ruff.lint.flake8-gettext</code></a></li>
<li><code>ruff.flake8-implicit-str-concat</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-implicit-str-concat"><code>ruff.lint.flake8-implicit-str-concat</code></a></li>
<li><code>ruff.flake8-import-conventions</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-import-conventions"><code>ruff.lint.flake8-import-conventions</code></a></li>
<li><code>ruff.flake8-pytest-style</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-pytest-style"><code>ruff.lint.flake8-pytest-style</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.2.0</h2>
<h3>Breaking changes</h3>
<ul>
<li>The <code>NURSERY</code> selector cannot be used anymore</li>
<li>Legacy selection of nursery rules by exact codes is no longer
allowed without preview enabled</li>
</ul>
<p>See also, the &quot;Remapped rules&quot; section which may result in
disabled rules.</p>
<h3>Deprecations</h3>
<p>The following rules are now deprecated:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-self/"><code>missing-type-self</code></a>
(<code>ANN101</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-cls/"><code>missing-type-cls</code></a>
(<code>ANN102</code>)</li>
</ul>
<p>The following command line options are now deprecated:</p>
<ul>
<li><code>--show-source</code>; use <code>--output-format full</code>
instead</li>
<li><code>--no-show-source</code>; use <code>--output-format
concise</code> instead</li>
<li><code>--output-format text</code>; use <code>full</code> or
<code>concise</code> instead</li>
</ul>
<p>The following settings have moved and the previous name is
deprecated:</p>
<ul>
<li><code>ruff.allowed-confusables</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_allowed-confusables"><code>ruff.lint.allowed-confusables</code></a></li>
<li><code>ruff.dummy-variable-rgx</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_dummy-variable-rgx"><code>ruff.lint.dummy-variable-rgx</code></a></li>
<li><code>ruff.explicit-preview-rules</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_explicit-preview-rules"><code>ruff.lint.explicit-preview-rules</code></a></li>
<li><code>ruff.extend-fixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-fixable"><code>ruff.lint.extend-fixable</code></a></li>
<li><code>ruff.extend-ignore</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-ignore"><code>ruff.lint.extend-ignore</code></a></li>
<li><code>ruff.extend-per-file-ignores</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-per-file-ignores"><code>ruff.lint.extend-per-file-ignores</code></a></li>
<li><code>ruff.extend-safe-fixes</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-safe-fixes"><code>ruff.lint.extend-safe-fixes</code></a></li>
<li><code>ruff.extend-select</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-select"><code>ruff.lint.extend-select</code></a></li>
<li><code>ruff.extend-unfixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-unfixable"><code>ruff.lint.extend-unfixable</code></a></li>
<li><code>ruff.extend-unsafe-fixes</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_extend-unsafe-fixes"><code>ruff.lint.extend-unsafe-fixes</code></a></li>
<li><code>ruff.external</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_external"><code>ruff.lint.external</code></a></li>
<li><code>ruff.fixable</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_fixable"><code>ruff.lint.fixable</code></a></li>
<li><code>ruff.flake8-annotations</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-annotations"><code>ruff.lint.flake8-annotations</code></a></li>
<li><code>ruff.flake8-bandit</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-bandit"><code>ruff.lint.flake8-bandit</code></a></li>
<li><code>ruff.flake8-bugbear</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-bugbear"><code>ruff.lint.flake8-bugbear</code></a></li>
<li><code>ruff.flake8-builtins</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-builtins"><code>ruff.lint.flake8-builtins</code></a></li>
<li><code>ruff.flake8-comprehensions</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-comprehensions"><code>ruff.lint.flake8-comprehensions</code></a></li>
<li><code>ruff.flake8-copyright</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-copyright"><code>ruff.lint.flake8-copyright</code></a></li>
<li><code>ruff.flake8-errmsg</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-errmsg"><code>ruff.lint.flake8-errmsg</code></a></li>
<li><code>ruff.flake8-gettext</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-gettext"><code>ruff.lint.flake8-gettext</code></a></li>
<li><code>ruff.flake8-implicit-str-concat</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-implicit-str-concat"><code>ruff.lint.flake8-implicit-str-concat</code></a></li>
<li><code>ruff.flake8-import-conventions</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-import-conventions"><code>ruff.lint.flake8-import-conventions</code></a></li>
<li><code>ruff.flake8-pytest-style</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-pytest-style"><code>ruff.lint.flake8-pytest-style</code></a></li>
<li><code>ruff.flake8-quotes</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-quotes"><code>ruff.lint.flake8-quotes</code></a></li>
<li><code>ruff.flake8-self</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-self"><code>ruff.lint.flake8-self</code></a></li>
<li><code>ruff.flake8-tidy-imports</code> → <a
href="https://docs.astral.sh//ruff/settings/#lint_flake8-tidy-imports"><code>ruff.lint.flake8-tidy-imports</code></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/1fadefa67b26508cc59cf38e6130bde2243c929d"><code>1fadefa</code></a>
Bump version to 0.2.0 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9762">#9762</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/06ad687efd079f8d39c87d2be617898a89298808"><code>06ad687</code></a>
Deduplicate deprecation warnings for v0.2.0 release (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9764">#9764</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/148b64ead320accd3bf9d33a6d96129b30e413a7"><code>148b64e</code></a>
Fix issue where output format mode would not change to <code>full</code>
if preview mode...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/99eddbd2a06af6962cbe4473da01fa3fa039acb4"><code>99eddbd</code></a>
Remove stale preview documentation from stabilized rule behaviors (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9759">#9759</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/836d2eaa0128a3374463789a6beb20e85a89baae"><code>836d2ea</code></a>
Restore RUF011 documentation (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9758">#9758</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/994514d68613a5066efaee7a4f50417606a28d2c"><code>994514d</code></a>
Redirect <code>PHG001</code> to <code>S307</code> and
<code>PGH002</code> to <code>G010</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9756">#9756</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a578414246d2534ce5c453e90a3eafa118cf1859"><code>a578414</code></a>
Redirect <code>TRY200</code> to <code>B904</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9755">#9755</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0d752e56cd2a81360febe60778e870386d5cef3a"><code>0d752e5</code></a>
Add tests for redirected rules (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9754">#9754</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/46c0937bfad75a9232221e1a6393fad93ed36a73"><code>46c0937</code></a>
Use fake rules for testing deprecation and removal infrastructure (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9752">#9752</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/e5008ca7140fb32cada795c5faa38ec60927b0db"><code>e5008ca</code></a>
Fix bug where selection included deprecated rules during preview (<a
href="https://redirect.github.com/astral-sh/ruff/issues/9746">#9746</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.1.15...v0.2.0">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.15&new-version=0.2.0)](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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Feb 5, 2024
1 parent 4de82ff commit d817f07
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 @@ -39,7 +39,7 @@ codespell = "^2.2.0"
optional = true

[tool.poetry.group.lint.dependencies]
ruff = "^0.1.5"
ruff = ">=0.1.5,<0.3.0"

[tool.poetry.group.typing.dependencies]
mypy = ">=0.991,<1.9"
Expand Down

0 comments on commit d817f07

Please sign in to comment.