Skip to content

Commit

Permalink
chore(deps): update dependency ruff to v0.0.274 (#99)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [ruff](https://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `0.0.272`
-> `0.0.274` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.274/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.274/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.274/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.274/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff</summary>

###
[`v0.0.274`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.274)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.273...v0.0.274)

<!-- Release notes generated using configuration in .github/release.yml
at v0.0.274 -->

#### What's Changed

Follow-up release to `v0.0.273` to fix a panic in cache accesses.

##### Bug Fixes

- Use package roots rather than package members for cache initialization
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5233
- Avoid `.unwrap()` on cache access by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5229
- Revert change to `RUF010` to remove unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5232
- Avoid erroneous RUF013 violations for quoted annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5234

**Full Changelog**:
astral-sh/ruff@v0.0.273...v0.0.274

###
[`v0.0.273`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.273)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.272...v0.0.273)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

Highlights include:

- Autofix capabilities for rules like `flake8-import-conventions`, which
require symbol renames across a file.
- Significant decrease in Ruff's cache size (e.g., a ~50% decrease for
FastAPI).
-   Dozens and dozens of bug fixes + performance improvements.

##### Rules

- \[`copyright`] Implement copyright notice detection by
[@&#8203;Ryang20718](https://togithub.com/Ryang20718) in
[astral-sh/ruff#4701
- \[`flake8-datetimez`] Enable UTC-import for `datetime-utc-alias` fix
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5100
- \[`flake8-implicit-str-concat`] Add autofix for `ISC001` by
[@&#8203;tkukushkin](https://togithub.com/tkukushkin) in
[astral-sh/ruff#4853
- \[`flake8-import-conventions`] Enable autofix for unconventional
imports rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5152
- \[`flake8-pyi`] Add autofix for `Set`-to-`AbstractSet` rewrite using
reference tracking by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5074
- \[`flake8-pyi`] Implement PYI044 by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5021
- \[`flake8-return`] Extend revised `RET504` implementation to `with`
statements by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4998
- \[`flake8-return`] Implement autofix for revised `RET504` rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4999
- \[`flake8-return`] Refactor `RET504` to only enforce
assignment-then-return pattern by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4997
- \[`flake8-slots`] Add plugin, add `SLOT000`, `SLOT001` and `SLOT002`
by [@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[astral-sh/ruff#4909
- \[`perflint`] Add `perflint` plugin, add first rule `PERF102` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[astral-sh/ruff#4821
- \[`pylint`] Add Pylint rule `comparison-with-itself` (`R0124`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#4957
- \[`pyupgrade`] Add a rule to remove unnecessary parentheses in class
definitions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5032
- \[`ruff`] Add a rule for static keys in dict comprehensions by
[@&#8203;rodjunger](https://togithub.com/rodjunger) in
[astral-sh/ruff#4929
- \[`ruff`] Add rule to disallow implicit optional with autofix by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#4831
- \[`ruff`] Expand RUF008 to all classes, but to a new code (RUF012) by
[@&#8203;adampauls](https://togithub.com/adampauls) in
[astral-sh/ruff#4390
- \[`ruff`] Remove unannotated attributes from RUF008 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5049
- \[`ruff`] Upgrade explicit-type-conversion rule (`RUF010`) to remove
unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4971

##### Settings

- Option (`-o`/`--output-file`) to write output to a file by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#4950
- Add JSON Lines (NDJSON) message serialization by
[@&#8203;akx](https://togithub.com/akx) in
[astral-sh/ruff#5048
- Add rule documentation URL to JSON output by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5187

##### Caching

- Only use a single cache file per Python package by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5117
- Open cache files in parallel by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5120

##### Jupyter

- Add support for auto-fix in Jupyter notebooks by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#4665
- Add roundtrip support for Jupyter notebook by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5028

##### Bug Fixes

- Handle decorators in class-parenthesis-modifying rules by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5034
- Allow re-assignments to `__all__` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4967
- Handled dict and set inside f-string
([#&#8203;4249](https://togithub.com/astral-sh/ruff/issues/4249)) by
[@&#8203;DavideCanton](https://togithub.com/DavideCanton) in
[astral-sh/ruff#4563
- Support concatenated string key removals by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4976
- Respect 'is not' operators split across newlines by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4977
- Parenthesize expressions prior to lexing in F632 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5001
- Ignore pyproject.toml for adding noqa directives by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5013
- Support 'reason' argument to `pytest.fail` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5040
- Allow `async with` in `redefined-loop-name` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5125
- Skip `DJ008` enforcement in stub files by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5139
- Detect continuations at start-of-file by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5173
- Fix allowed-ellipsis detection by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5174
- Remove continuations before trailing semicolons by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5199
- Support parenthesized expressions when splitting compound assertions
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5219
- Use phf for confusables to reduce llvm lines by
[@&#8203;konstin](https://togithub.com/konstin) in
[astral-sh/ruff#4926
- Allow private accesses within special dunder methods by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4968
- Support concatenated literals in format-literals by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#4974
- Fix line numbers in source frames by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#4984
- Suggest combining async with statements by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5022
- Improve `TypedDict` conversion logic for shadowed builtins and dunder
methods by [@&#8203;charliermarsh](https://togithub.com/charliermarsh)
in
[astral-sh/ruff#5038
- Support glob patterns in pep8\_naming ignore-names by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5024
- Respect all `__all__` definitions for docstring visibility by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5052
- Don't treat annotations as resolved in forward references by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5060
- Consider ignore-names in all pep8 naming rules by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[astral-sh/ruff#5079
- Ignore `reimplemented-builtin` if using `await` by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5101
- Allow space in filename for powershell + windows + python module by
[@&#8203;konstin](https://togithub.com/konstin) in
[astral-sh/ruff#5115
- Don't treat straight imports of **future** as `__future__` imports by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5128
- Remove continuations when deleting statements by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5198
- Fix corner case involving terminal backslash after fixing `W293` by
[@&#8203;evanrittenhouse](https://togithub.com/evanrittenhouse) in
[astral-sh/ruff#5172
- Fix subprocess.run on Windows Python 3.7 by
[@&#8203;konstin](https://togithub.com/konstin) in
[astral-sh/ruff#5220

#### New Contributors

- [@&#8203;rodjunger](https://togithub.com/rodjunger) made their first
contribution in
[astral-sh/ruff#4929
- [@&#8203;DavideCanton](https://togithub.com/DavideCanton) made their
first contribution in
[astral-sh/ruff#4563
- [@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their
first contribution in
[astral-sh/ruff#5021
- [@&#8203;adampauls](https://togithub.com/adampauls) made their first
contribution in
[astral-sh/ruff#4390
- [@&#8203;tkukushkin](https://togithub.com/tkukushkin) made their first
contribution in
[astral-sh/ruff#4853
- [@&#8203;Taybou](https://togithub.com/Taybou) made their first
contribution in
[astral-sh/ruff#5088
- [@&#8203;davidszotten](https://togithub.com/davidszotten) made their
first contribution in
[astral-sh/ruff#5158
- [@&#8203;dosisod](https://togithub.com/dosisod) made their first
contribution in
[astral-sh/ruff#5203

**Full Changelog**:
astral-sh/ruff@v0.0.272...v0.0.273

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/jankatins/pr-workflow-example).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
  • Loading branch information
jankatins committed Jun 21, 2023
2 parents 334c1bc + 4759c5b commit 0acb025
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions poetry.lock

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

0 comments on commit 0acb025

Please sign in to comment.