Skip to content

Upgrade explicit-type-conversion rule (RUF010) to remove unnecessary str calls#4971

Merged
charliermarsh merged 1 commit intomainfrom
charlie/str
Jun 8, 2023
Merged

Upgrade explicit-type-conversion rule (RUF010) to remove unnecessary str calls#4971
charliermarsh merged 1 commit intomainfrom
charlie/str

Conversation

@charliermarsh
Copy link
Member

Summary

It turns out that f"{str(bla)}" is redundant, as it's equivalent to f"{bla}". Similarly, f"{bla!s}" can be rewritten to f"{bla}".

In both cases, it's only necessary to retain the !s if the string contains a format spec, like f"{bla!s:20}".

Closes #4958.

@charliermarsh charliermarsh self-assigned this Jun 8, 2023
@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Jun 8, 2023
@charliermarsh charliermarsh removed their assignment Jun 8, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) June 8, 2023 20:00
@charliermarsh charliermarsh merged commit aba073a into main Jun 8, 2023
@charliermarsh charliermarsh deleted the charlie/str branch June 8, 2023 20:02
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

PR Check Results

Ecosystem

ℹ️ ecosystem check detected changes. (+62, -40, 0 error(s))

airflow (+48, -40)

+ airflow/api/common/experimental/get_code.py:40:34: RUF010 [*] Remove unnecessary `str` conversion
- airflow/api/common/experimental/get_code.py:40:34: RUF010 [*] Use conversion in f-string
+ airflow/cli/commands/task_command.py:546:89: RUF010 [*] Remove unnecessary `str` conversion
- airflow/cli/commands/task_command.py:546:89: RUF010 [*] Use conversion in f-string
- airflow/cli/commands/variable_command.py:97:50: RUF010 [*] Use conversion in f-string
+ airflow/cli/commands/variable_command.py:97:50: RUF010 [*] Use explicit conversion flag
+ airflow/exceptions.py:299:49: RUF010 [*] Remove unnecessary `str` conversion
- airflow/exceptions.py:299:49: RUF010 [*] Use conversion in f-string
+ airflow/executors/kubernetes_executor.py:850:66: RUF010 [*] Remove unnecessary `str` conversion
- airflow/executors/kubernetes_executor.py:850:66: RUF010 [*] Use conversion in f-string
+ airflow/policies.py:170:43: RUF010 [*] Remove unnecessary `str` conversion
- airflow/policies.py:170:43: RUF010 [*] Use conversion in f-string
+ airflow/providers/amazon/aws/hooks/dynamodb.py:70:82: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/amazon/aws/hooks/dynamodb.py:70:82: RUF010 [*] Use conversion in f-string
+ airflow/providers/amazon/aws/log/cloudwatch_task_handler.py:99:40: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/amazon/aws/log/cloudwatch_task_handler.py:99:40: RUF010 [*] Use conversion in f-string
- airflow/providers/apache/hive/hooks/hive.py:928:48: RUF010 [*] Use conversion in f-string
+ airflow/providers/apache/hive/hooks/hive.py:928:48: RUF010 [*] Use explicit conversion flag
- airflow/providers/apache/hive/hooks/hive.py:929:49: RUF010 [*] Use conversion in f-string
+ airflow/providers/apache/hive/hooks/hive.py:929:49: RUF010 [*] Use explicit conversion flag
+ airflow/providers/apache/livy/triggers/livy.py:104:80: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/apache/livy/triggers/livy.py:104:80: RUF010 [*] Use conversion in f-string
+ airflow/providers/apache/spark/hooks/spark_submit.py:272:51: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/apache/spark/hooks/spark_submit.py:272:51: RUF010 [*] Use conversion in f-string
+ airflow/providers/arangodb/hooks/arangodb.py:112:74: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/arangodb/hooks/arangodb.py:112:74: RUF010 [*] Use conversion in f-string
+ airflow/providers/cncf/kubernetes/utils/delete_from.py:140:42: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/cncf/kubernetes/utils/delete_from.py:140:42: RUF010 [*] Use conversion in f-string
+ airflow/providers/common/sql/operators/sql.py:415:44: RUF010 [*] Remove unnecessary conversion flag
+ airflow/providers/common/sql/operators/sql.py:620:64: RUF010 [*] Remove unnecessary conversion flag
+ airflow/providers/common/sql/operators/sql.py:714:82: RUF010 [*] Remove unnecessary conversion flag
- airflow/providers/docker/operators/docker.py:411:68: RUF010 [*] Use conversion in f-string
+ airflow/providers/docker/operators/docker.py:411:68: RUF010 [*] Use explicit conversion flag
+ airflow/providers/github/operators/github.py:77:80: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/github/operators/github.py:77:80: RUF010 [*] Use conversion in f-string
+ airflow/providers/github/operators/github.py:79:62: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/github/operators/github.py:79:62: RUF010 [*] Use conversion in f-string
+ airflow/providers/github/sensors/github.py:142:78: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/github/sensors/github.py:142:78: RUF010 [*] Use conversion in f-string
+ airflow/providers/github/sensors/github.py:144:62: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/github/sensors/github.py:144:62: RUF010 [*] Use conversion in f-string
+ airflow/providers/google/cloud/example_dags/example_vertex_ai.py:226:30: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/google/cloud/example_dags/example_vertex_ai.py:226:30: RUF010 [*] Use conversion in f-string
+ airflow/providers/google/cloud/log/gcs_task_handler.py:250:88: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/google/cloud/log/gcs_task_handler.py:250:88: RUF010 [*] Use conversion in f-string
+ airflow/providers/google/cloud/operators/bigquery.py:270:64: RUF010 [*] Remove unnecessary conversion flag
+ airflow/providers/google/cloud/operators/bigquery.py:653:44: RUF010 [*] Remove unnecessary conversion flag
+ airflow/providers/google/cloud/operators/bigquery.py:756:64: RUF010 [*] Remove unnecessary conversion flag
+ airflow/providers/google/cloud/triggers/bigquery_dts.py:138:70: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/google/cloud/triggers/bigquery_dts.py:138:70: RUF010 [*] Use conversion in f-string
+ airflow/providers/grpc/hooks/grpc.py:115:33: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/grpc/hooks/grpc.py:115:33: RUF010 [*] Use conversion in f-string
+ airflow/providers/microsoft/winrm/operators/winrm.py:144:61: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/microsoft/winrm/operators/winrm.py:144:61: RUF010 [*] Use conversion in f-string
+ airflow/providers/sftp/operators/sftp.py:188:83: RUF010 [*] Remove unnecessary `str` conversion
- airflow/providers/sftp/operators/sftp.py:188:83: RUF010 [*] Use conversion in f-string
+ airflow/serialization/serialized_objects.py:565:45: RUF010 [*] Remove unnecessary conversion flag
+ airflow/task/task_runner/cgroup_task_runner.py:137:84: RUF010 [*] Remove unnecessary `str` conversion
- airflow/task/task_runner/cgroup_task_runner.py:137:84: RUF010 [*] Use conversion in f-string
+ airflow/utils/log/file_task_handler.py:521:60: RUF010 [*] Remove unnecessary `str` conversion
- airflow/utils/log/file_task_handler.py:521:60: RUF010 [*] Use conversion in f-string
+ airflow/www/views.py:1632:80: RUF010 [*] Remove unnecessary `str` conversion
- airflow/www/views.py:1632:80: RUF010 [*] Use conversion in f-string
+ tests/always/test_example_dags.py:85:61: RUF010 [*] Remove unnecessary `str` conversion
- tests/always/test_example_dags.py:85:61: RUF010 [*] Use conversion in f-string
+ tests/integration/executors/test_celery_executor.py:246:56: RUF010 [*] Remove unnecessary `str` conversion
- tests/integration/executors/test_celery_executor.py:246:56: RUF010 [*] Use conversion in f-string
+ tests/models/test_baseoperator.py:53:56: RUF010 [*] Remove unnecessary `str` conversion
- tests/models/test_baseoperator.py:53:56: RUF010 [*] Use conversion in f-string
+ tests/models/test_renderedtifields.py:51:56: RUF010 [*] Remove unnecessary `str` conversion
- tests/models/test_renderedtifields.py:51:56: RUF010 [*] Use conversion in f-string
+ tests/providers/amazon/aws/operators/test_emr_serverless.py:543:48: RUF010 [*] Remove unnecessary `str` conversion
- tests/providers/amazon/aws/operators/test_emr_serverless.py:543:48: RUF010 [*] Use conversion in f-string
+ tests/providers/amazon/aws/utils/eks_test_utils.py:117:42: RUF010 [*] Remove unnecessary `str` conversion
- tests/providers/amazon/aws/utils/eks_test_utils.py:117:42: RUF010 [*] Use conversion in f-string
+ tests/providers/amazon/aws/utils/eks_test_utils.py:140:39: RUF010 [*] Remove unnecessary `str` conversion
- tests/providers/amazon/aws/utils/eks_test_utils.py:140:39: RUF010 [*] Use conversion in f-string
+ tests/providers/amazon/aws/utils/eks_test_utils.py:95:48: RUF010 [*] Remove unnecessary `str` conversion
- tests/providers/amazon/aws/utils/eks_test_utils.py:95:48: RUF010 [*] Use conversion in f-string
+ tests/providers/google/cloud/operators/test_bigquery.py:1694:81: RUF010 [*] Remove unnecessary conversion flag
+ tests/serialization/test_dag_serialization.py:1055:49: RUF010 [*] Remove unnecessary `str` conversion
- tests/serialization/test_dag_serialization.py:1055:49: RUF010 [*] Use conversion in f-string
+ tests/system/providers/github/example_github.py:64:78: RUF010 [*] Remove unnecessary `str` conversion
- tests/system/providers/github/example_github.py:64:78: RUF010 [*] Use conversion in f-string
+ tests/system/providers/github/example_github.py:66:62: RUF010 [*] Remove unnecessary `str` conversion
- tests/system/providers/github/example_github.py:66:62: RUF010 [*] Use conversion in f-string
+ tests/system/providers/google/marketing_platform/example_campaign_manager.py:145:37: RUF010 [*] Remove unnecessary `str` conversion
- tests/system/providers/google/marketing_platform/example_campaign_manager.py:145:37: RUF010 [*] Use conversion in f-string

bokeh (+4, -0)

+ src/bokeh/models/widgets/sliders.py:112:27: RUF010 [*] Remove unnecessary conversion flag
+ src/bokeh/models/widgets/sliders.py:112:47: RUF010 [*] Remove unnecessary conversion flag
+ src/bokeh/util/token.py:287:51: RUF010 [*] Remove unnecessary conversion flag
+ tests/test_cross.py:188:45: RUF010 [*] Remove unnecessary conversion flag

disnake (+10, -0)

+ disnake/activity.py:298:29: RUF010 [*] Remove unnecessary conversion flag
+ disnake/audit_logs.py:300:30: RUF010 [*] Remove unnecessary conversion flag
+ disnake/channel.py:1279:30: RUF010 [*] Remove unnecessary conversion flag
+ disnake/channel.py:1963:30: RUF010 [*] Remove unnecessary conversion flag
+ disnake/channel.py:215:30: RUF010 [*] Remove unnecessary conversion flag
+ disnake/channel.py:3262:30: RUF010 [*] Remove unnecessary conversion flag
+ disnake/client.py:181:101: RUF010 [*] Remove unnecessary conversion flag
+ disnake/guild.py:430:29: RUF010 [*] Remove unnecessary conversion flag
+ disnake/guild_scheduled_event.py:206:29: RUF010 [*] Remove unnecessary conversion flag
+ disnake/member.py:163:29: RUF010 [*] Remove unnecessary conversion flag

Rules changed: 1
Rule Changes Additions Removals
RUF010 102 62 40

Benchmark

Linux

group                                      main                                    pr
-----                                      ----                                    --
formatter/large/dataset.py                 1.05      7.8±0.47ms     5.2 MB/sec     1.00      7.4±0.42ms     5.5 MB/sec
formatter/numpy/ctypeslib.py               1.09  1428.2±101.88µs    11.7 MB/sec    1.00  1307.1±92.73µs    12.7 MB/sec
formatter/numpy/globals.py                 1.05    159.3±8.46µs    18.5 MB/sec     1.00   151.8±12.84µs    19.4 MB/sec
formatter/pydantic/types.py                1.11      3.4±0.15ms     7.6 MB/sec     1.00      3.0±0.18ms     8.5 MB/sec
linter/all-rules/large/dataset.py          1.00     16.7±0.81ms     2.4 MB/sec     1.04     17.3±1.21ms     2.4 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.03      4.0±0.21ms     4.1 MB/sec     1.00      3.9±0.23ms     4.3 MB/sec
linter/all-rules/numpy/globals.py          1.06   531.4±20.80µs     5.6 MB/sec     1.00   501.2±29.35µs     5.9 MB/sec
linter/all-rules/pydantic/types.py         1.07      7.4±0.30ms     3.5 MB/sec     1.00      6.9±0.39ms     3.7 MB/sec
linter/default-rules/large/dataset.py      1.00      8.1±0.43ms     5.0 MB/sec     1.01      8.1±0.34ms     5.0 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1689.6±94.98µs     9.9 MB/sec     1.01  1711.5±118.25µs     9.7 MB/sec
linter/default-rules/numpy/globals.py      1.02   196.8±16.30µs    15.0 MB/sec     1.00   192.4±11.65µs    15.3 MB/sec
linter/default-rules/pydantic/types.py     1.06      3.8±0.23ms     6.7 MB/sec     1.00      3.6±0.21ms     7.1 MB/sec

Windows

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.01      7.7±0.07ms     5.3 MB/sec    1.00      7.6±0.05ms     5.4 MB/sec
formatter/numpy/ctypeslib.py               1.00  1338.5±16.37µs    12.4 MB/sec    1.00  1333.4±34.61µs    12.5 MB/sec
formatter/numpy/globals.py                 1.00    147.0±3.65µs    20.1 MB/sec    1.00    147.2±3.66µs    20.0 MB/sec
formatter/pydantic/types.py                1.01      3.1±0.03ms     8.2 MB/sec    1.00      3.1±0.04ms     8.2 MB/sec
linter/all-rules/large/dataset.py          1.00     16.6±0.13ms     2.5 MB/sec    1.00     16.6±0.13ms     2.5 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      4.2±0.06ms     3.9 MB/sec    1.00      4.2±0.07ms     3.9 MB/sec
linter/all-rules/numpy/globals.py          1.00   494.8±12.82µs     6.0 MB/sec    1.00    495.5±6.23µs     6.0 MB/sec
linter/all-rules/pydantic/types.py         1.00      7.0±0.06ms     3.6 MB/sec    1.00      7.0±0.08ms     3.6 MB/sec
linter/default-rules/large/dataset.py      1.00      8.2±0.08ms     4.9 MB/sec    1.00      8.3±0.05ms     4.9 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1753.2±16.86µs     9.5 MB/sec    1.00  1757.8±20.06µs     9.5 MB/sec
linter/default-rules/numpy/globals.py      1.00    198.1±3.93µs    14.9 MB/sec    1.01    200.0±2.96µs    14.8 MB/sec
linter/default-rules/pydantic/types.py     1.00      3.7±0.04ms     6.8 MB/sec    1.00      3.7±0.03ms     6.8 MB/sec

konstin pushed a commit that referenced this pull request Jun 13, 2023
charliermarsh added a commit that referenced this pull request Jun 21, 2023
## Summary

This PR reverts #4971 (aba073a). It
turns out that `f"{str(x)}"` and `f"{x}"` are often but not exactly
equivalent, and performing that conversion automatically can lead to
subtle bugs, See the discussion in
#4958.
renovate bot referenced this pull request in ixm-one/pytest-cmake-presets Jun 21, 2023
[![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.273` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

##### Settings

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

##### Caching

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

##### Jupyter

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

##### Bug Fixes

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

##### New Contributors

- [@&#8203;rodjunger](https://togithub.com/rodjunger) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- [@&#8203;DavideCanton](https://togithub.com/DavideCanton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563)
- [@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- [@&#8203;adampauls](https://togithub.com/adampauls) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- [@&#8203;tkukushkin](https://togithub.com/tkukushkin) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- [@&#8203;Taybou](https://togithub.com/Taybou) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5088](https://togithub.com/astral-sh/ruff/pull/5088)
- [@&#8203;davidszotten](https://togithub.com/davidszotten) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5158](https://togithub.com/astral-sh/ruff/pull/5158)
- [@&#8203;dosisod](https://togithub.com/dosisod) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5203](https://togithub.com/astral-sh/ruff/pull/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**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, 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/ixm-one/pytest-cmake-presets).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jankatins referenced this pull request in jankatins/pr-workflow-example Jun 21, 2023
[![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
[https://github.com/astral-sh/ruff/pull/5233](https://togithub.com/astral-sh/ruff/pull/5233)
- Avoid `.unwrap()` on cache access by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5229](https://togithub.com/astral-sh/ruff/pull/5229)
- Revert change to `RUF010` to remove unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5232](https://togithub.com/astral-sh/ruff/pull/5232)
- Avoid erroneous RUF013 violations for quoted annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5234](https://togithub.com/astral-sh/ruff/pull/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
[https://github.com/astral-sh/ruff/pull/4701](https://togithub.com/astral-sh/ruff/pull/4701)
- \[`flake8-datetimez`] Enable UTC-import for `datetime-utc-alias` fix
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5100](https://togithub.com/astral-sh/ruff/pull/5100)
- \[`flake8-implicit-str-concat`] Add autofix for `ISC001` by
[@&#8203;tkukushkin](https://togithub.com/tkukushkin) in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- \[`flake8-import-conventions`] Enable autofix for unconventional
imports rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5152](https://togithub.com/astral-sh/ruff/pull/5152)
- \[`flake8-pyi`] Add autofix for `Set`-to-`AbstractSet` rewrite using
reference tracking by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5074](https://togithub.com/astral-sh/ruff/pull/5074)
- \[`flake8-pyi`] Implement PYI044 by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- \[`flake8-return`] Extend revised `RET504` implementation to `with`
statements by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4998](https://togithub.com/astral-sh/ruff/pull/4998)
- \[`flake8-return`] Implement autofix for revised `RET504` rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4999](https://togithub.com/astral-sh/ruff/pull/4999)
- \[`flake8-return`] Refactor `RET504` to only enforce
assignment-then-return pattern by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4997](https://togithub.com/astral-sh/ruff/pull/4997)
- \[`flake8-slots`] Add plugin, add `SLOT000`, `SLOT001` and `SLOT002`
by [@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/4909](https://togithub.com/astral-sh/ruff/pull/4909)
- \[`perflint`] Add `perflint` plugin, add first rule `PERF102` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/4821](https://togithub.com/astral-sh/ruff/pull/4821)
- \[`pylint`] Add Pylint rule `comparison-with-itself` (`R0124`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/4957](https://togithub.com/astral-sh/ruff/pull/4957)
- \[`pyupgrade`] Add a rule to remove unnecessary parentheses in class
definitions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5032](https://togithub.com/astral-sh/ruff/pull/5032)
- \[`ruff`] Add a rule for static keys in dict comprehensions by
[@&#8203;rodjunger](https://togithub.com/rodjunger) in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- \[`ruff`] Add rule to disallow implicit optional with autofix by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/4831](https://togithub.com/astral-sh/ruff/pull/4831)
- \[`ruff`] Expand RUF008 to all classes, but to a new code (RUF012) by
[@&#8203;adampauls](https://togithub.com/adampauls) in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- \[`ruff`] Remove unannotated attributes from RUF008 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5049](https://togithub.com/astral-sh/ruff/pull/5049)
- \[`ruff`] Upgrade explicit-type-conversion rule (`RUF010`) to remove
unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4971](https://togithub.com/astral-sh/ruff/pull/4971)

##### Settings

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

##### Caching

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

##### Jupyter

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

##### Bug Fixes

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

#### New Contributors

- [@&#8203;rodjunger](https://togithub.com/rodjunger) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- [@&#8203;DavideCanton](https://togithub.com/DavideCanton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563)
- [@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- [@&#8203;adampauls](https://togithub.com/adampauls) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- [@&#8203;tkukushkin](https://togithub.com/tkukushkin) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- [@&#8203;Taybou](https://togithub.com/Taybou) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5088](https://togithub.com/astral-sh/ruff/pull/5088)
- [@&#8203;davidszotten](https://togithub.com/davidszotten) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5158](https://togithub.com/astral-sh/ruff/pull/5158)
- [@&#8203;dosisod](https://togithub.com/dosisod) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5203](https://togithub.com/astral-sh/ruff/pull/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-->
renovate bot referenced this pull request in allenporter/pyrainbird Jun 22, 2023
[![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
[https://github.com/astral-sh/ruff/pull/5233](https://togithub.com/astral-sh/ruff/pull/5233)
- Avoid `.unwrap()` on cache access by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5229](https://togithub.com/astral-sh/ruff/pull/5229)
- Revert change to `RUF010` to remove unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5232](https://togithub.com/astral-sh/ruff/pull/5232)
- Avoid erroneous RUF013 violations for quoted annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5234](https://togithub.com/astral-sh/ruff/pull/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
[https://github.com/astral-sh/ruff/pull/4701](https://togithub.com/astral-sh/ruff/pull/4701)
- \[`flake8-datetimez`] Enable UTC-import for `datetime-utc-alias` fix
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5100](https://togithub.com/astral-sh/ruff/pull/5100)
- \[`flake8-implicit-str-concat`] Add autofix for `ISC001` by
[@&#8203;tkukushkin](https://togithub.com/tkukushkin) in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- \[`flake8-import-conventions`] Enable autofix for unconventional
imports rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5152](https://togithub.com/astral-sh/ruff/pull/5152)
- \[`flake8-pyi`] Add autofix for `Set`-to-`AbstractSet` rewrite using
reference tracking by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5074](https://togithub.com/astral-sh/ruff/pull/5074)
- \[`flake8-pyi`] Implement PYI044 by
[@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- \[`flake8-return`] Extend revised `RET504` implementation to `with`
statements by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4998](https://togithub.com/astral-sh/ruff/pull/4998)
- \[`flake8-return`] Implement autofix for revised `RET504` rule by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4999](https://togithub.com/astral-sh/ruff/pull/4999)
- \[`flake8-return`] Refactor `RET504` to only enforce
assignment-then-return pattern by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4997](https://togithub.com/astral-sh/ruff/pull/4997)
- \[`flake8-slots`] Add plugin, add `SLOT000`, `SLOT001` and `SLOT002`
by [@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/4909](https://togithub.com/astral-sh/ruff/pull/4909)
- \[`perflint`] Add `perflint` plugin, add first rule `PERF102` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/4821](https://togithub.com/astral-sh/ruff/pull/4821)
- \[`pylint`] Add Pylint rule `comparison-with-itself` (`R0124`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/4957](https://togithub.com/astral-sh/ruff/pull/4957)
- \[`pyupgrade`] Add a rule to remove unnecessary parentheses in class
definitions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5032](https://togithub.com/astral-sh/ruff/pull/5032)
- \[`ruff`] Add a rule for static keys in dict comprehensions by
[@&#8203;rodjunger](https://togithub.com/rodjunger) in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- \[`ruff`] Add rule to disallow implicit optional with autofix by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/4831](https://togithub.com/astral-sh/ruff/pull/4831)
- \[`ruff`] Expand RUF008 to all classes, but to a new code (RUF012) by
[@&#8203;adampauls](https://togithub.com/adampauls) in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- \[`ruff`] Remove unannotated attributes from RUF008 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5049](https://togithub.com/astral-sh/ruff/pull/5049)
- \[`ruff`] Upgrade explicit-type-conversion rule (`RUF010`) to remove
unnecessary `str` calls by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/4971](https://togithub.com/astral-sh/ruff/pull/4971)

##### Settings

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

##### Caching

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

##### Jupyter

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

##### Bug Fixes

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

#### New Contributors

- [@&#8203;rodjunger](https://togithub.com/rodjunger) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- [@&#8203;DavideCanton](https://togithub.com/DavideCanton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563)
- [@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- [@&#8203;adampauls](https://togithub.com/adampauls) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- [@&#8203;tkukushkin](https://togithub.com/tkukushkin) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- [@&#8203;Taybou](https://togithub.com/Taybou) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5088](https://togithub.com/astral-sh/ruff/pull/5088)
- [@&#8203;davidszotten](https://togithub.com/davidszotten) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5158](https://togithub.com/astral-sh/ruff/pull/5158)
- [@&#8203;dosisod](https://togithub.com/dosisod) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5203](https://togithub.com/astral-sh/ruff/pull/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**: Enabled.

♻ **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/allenporter/pyrainbird).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/flux-local Jun 23, 2023
[![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.275` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

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

#### What's Changed

Highlights include a 7-10x decrease in Ruff's cache size.

##### Rules

- Add support for top-level quoted annotations in RUF013 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5235](https://togithub.com/astral-sh/ruff/pull/5235)
- Add support for nested quoted annotations in RUF013 by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5254](https://togithub.com/astral-sh/ruff/pull/5254)
- Move `compare-to-empty-string` (`PLC1901`) to nursery by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5264](https://togithub.com/astral-sh/ruff/pull/5264)
- Ignore Pydantic classes when evaluating `mutable-class-default`
(`RUF012`) by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5273](https://togithub.com/astral-sh/ruff/pull/5273)
- Allow `typing.Final` for `mutable-class-default annotations`
(`RUF012`) by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5274](https://togithub.com/astral-sh/ruff/pull/5274)
- Modify `deprecated-import` (`UP035`) to prefer `typing_extensions` in
some versions by [@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/5291](https://togithub.com/astral-sh/ruff/pull/5291)

##### Bug Fixes

- Restore existing bindings when unbinding caught exceptions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5256](https://togithub.com/astral-sh/ruff/pull/5256)
- Avoid including nursery rules in linter-level selectors by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5268](https://togithub.com/astral-sh/ruff/pull/5268)

#### New Contributors

- [@&#8203;jgberry](https://togithub.com/jgberry) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5221](https://togithub.com/astral-sh/ruff/pull/5221)

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

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

##### Settings

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

##### Caching

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

##### Jupyter

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

##### Bug Fixes

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

#### New Contributors

- [@&#8203;rodjunger](https://togithub.com/rodjunger) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929)
- [@&#8203;DavideCanton](https://togithub.com/DavideCanton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563)
- [@&#8203;Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021)
- [@&#8203;adampauls](https://togithub.com/adampauls) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390)
- [@&#8203;tkukushkin](https://togithub.com/tkukushkin) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853)
- [@&#8203;Taybou](https://togithub.com/Taybou) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5088](https://togithub.com/astral-sh/ruff/pull/5088)
- [@&#8203;davidszotten](https://togithub.com/davidszotten) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5158](https://togithub.com/astral-sh/ruff/pull/5158)
- [@&#8203;dosisod](https://togithub.com/dosisod) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5203](https://togithub.com/astral-sh/ruff/pull/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**: Enabled.

♻ **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/allenporter/flux-local).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
AlexWaygood referenced this pull request in AlexWaygood/typeshed-stats Jul 1, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [docs/MarkDown](https://togithub.com/Python-Markdown/markdown)
([changelog](https://togithub.com/Python-Markdown/markdown/blob/master/docs/change_log/index.md))
| `==3.3.7` -> `==3.4.3` |
[![age](https://badges.renovateapi.com/packages/pypi/docs%2fMarkDown/3.4.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/docs%2fMarkDown/3.4.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/docs%2fMarkDown/3.4.3/compatibility-slim/3.3.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/docs%2fMarkDown/3.4.3/confidence-slim/3.3.7)](https://docs.renovatebot.com/merge-confidence/)
|
| [docs/mkdocs-material](https://togithub.com/squidfunk/mkdocs-material)
| `==9.1.14` -> `==9.1.17` |
[![age](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocs-material/9.1.17/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocs-material/9.1.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocs-material/9.1.17/compatibility-slim/9.1.14)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocs-material/9.1.17/confidence-slim/9.1.14)](https://docs.renovatebot.com/merge-confidence/)
|
| [docs/mkdocstrings](https://togithub.com/mkdocstrings/mkdocstrings)
([changelog](https://mkdocstrings.github.io/changelog)) | `==0.21.2` ->
`==0.22.0` |
[![age](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocstrings/0.22.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocstrings/0.22.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocstrings/0.22.0/compatibility-slim/0.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/docs%2fmkdocstrings/0.22.0/confidence-slim/0.21.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [misc-lint/blacken-docs](https://togithub.com/asottile/blacken-docs)
([changelog](https://togithub.com/adamchainz/blacken-docs/blob/main/CHANGELOG.rst))
| `==1.13.0` -> `==1.14.0` |
[![age](https://badges.renovateapi.com/packages/pypi/misc-lint%2fblacken-docs/1.14.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/misc-lint%2fblacken-docs/1.14.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/misc-lint%2fblacken-docs/1.14.0/compatibility-slim/1.13.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/misc-lint%2fblacken-docs/1.14.0/confidence-slim/1.13.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [misc-lint/pycln](https://hadialqattan.github.io/pycln)
([source](https://togithub.com/hadialqattan/pycln)) | `==2.1.3` ->
`==2.1.5` |
[![age](https://badges.renovateapi.com/packages/pypi/misc-lint%2fpycln/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/misc-lint%2fpycln/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/misc-lint%2fpycln/2.1.5/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/misc-lint%2fpycln/2.1.5/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/)
|
| [misc-lint/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.275` |
[![age](https://badges.renovateapi.com/packages/pypi/misc-lint%2fruff/0.0.275/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/misc-lint%2fruff/0.0.275/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/misc-lint%2fruff/0.0.275/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/misc-lint%2fruff/0.0.275/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/)
|
| [pytest/pytest](https://docs.pytest.org/en/latest/)
([source](https://togithub.com/pytest-dev/pytest),
[changelog](https://docs.pytest.org/en/stable/changelog.html)) |
`==7.3.1` -> `==7.4.0` |
[![age](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest/7.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest/7.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest/7.4.0/compatibility-slim/7.3.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest/7.4.0/confidence-slim/7.3.1)](https://docs.renovatebot.com/merge-confidence/)
|
| [pytest/pytest-mock](https://togithub.com/pytest-dev/pytest-mock)
([changelog](https://pytest-mock.readthedocs.io/en/latest/changelog.html))
| `==3.10.0` -> `==3.11.1` |
[![age](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest-mock/3.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest-mock/3.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest-mock/3.11.1/compatibility-slim/3.10.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/pytest%2fpytest-mock/3.11.1/confidence-slim/3.10.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [typecheck/mypy](https://www.mypy-lang.org/)
([source](https://togithub.com/python/mypy),
[changelog](https://mypy-lang.blogspot.com/)) | `==1.3.0` -> `==1.4.0` |
[![age](https://badges.renovateapi.com/packages/pypi/typecheck%2fmypy/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/typecheck%2fmypy/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/typecheck%2fmypy/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/typecheck%2fmypy/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Python-Markdown/markdown (docs/MarkDown)</summary>

###
[`v3.4.3`](https://togithub.com/Python-Markdown/markdown/compare/3.4.2...3.4.3)

[Compare
Source](https://togithub.com/Python-Markdown/markdown/compare/3.4.2...3.4.3)

###
[`v3.4.2`](https://togithub.com/Python-Markdown/markdown/compare/3.4.1...3.4.2)

[Compare
Source](https://togithub.com/Python-Markdown/markdown/compare/3.4.1...3.4.2)

###
[`v3.4.1`](https://togithub.com/Python-Markdown/markdown/compare/3.4...3.4.1)

[Compare
Source](https://togithub.com/Python-Markdown/markdown/compare/3.4...3.4.1)

###
[`v3.4`](https://togithub.com/Python-Markdown/markdown/compare/3.3.7...3.4)

[Compare
Source](https://togithub.com/Python-Markdown/markdown/compare/3.3.7...3.4)

</details>

<details>
<summary>squidfunk/mkdocs-material (docs/mkdocs-material)</summary>

###
[`v9.1.17`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.1.17):
mkdocs-material-9.1.17

[Compare
Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.1.16...9.1.17)

- Fixed
[#&#8203;5633](https://togithub.com/squidfunk/mkdocs-material/issues/5633):
Code annotations with nested lists incorrectly mounted
- Fixed
[#&#8203;5628](https://togithub.com/squidfunk/mkdocs-material/issues/5628):
Regression in new social plugin configuration scheme

###
[`v9.1.16`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.1.16):
mkdocs-material-9.1.16

[Compare
Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.1.15...9.1.16)

-   Updated Indonesian translations
-   Ensure scroll bar follows color scheme of operating system

###
[`v9.1.15`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.1.15):
mkdocs-material-9.1.15

[Compare
Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.1.14...9.1.15)

- Fixed
[#&#8203;5566](https://togithub.com/squidfunk/mkdocs-material/issues/5566):
Indicate color scheme to operating system
- Fixed
[#&#8203;5565](https://togithub.com/squidfunk/mkdocs-material/issues/5565):
Update `Dockerfile` to latest version of base image
- Fixed
[#&#8203;5554](https://togithub.com/squidfunk/mkdocs-material/issues/5554):
Add additional version tags (`9`, `9.1`) to Docker image
- Fixed
[#&#8203;5536](https://togithub.com/squidfunk/mkdocs-material/issues/5536):
Strip tags of ARIA labels in table of contents

</details>

<details>
<summary>mkdocstrings/mkdocstrings (docs/mkdocstrings)</summary>

###
[`v0.22.0`](https://togithub.com/mkdocstrings/mkdocstrings/blob/HEAD/CHANGELOG.md#&#8203;0220-httpsgithubcommkdocstringsmkdocstringsreleasestag0220---2023-05-25)

[Compare
Source](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.21.2...0.22.0)

<small>[Compare with
0.21.2](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.21.2...0.22.0)</small>

##### Features

- Allow extensions to add templates
([cf0af05](https://togithub.com/mkdocstrings/mkdocstrings/commit/cf0af059eb89240eba0437de417c124389e2f20e)
by Timothée Mazzucotelli). [PR
#&#8203;569](https://togithub.com/mkdocstrings/mkdocstrings/pull/569)

##### Code Refactoring

- Report inventory loading errors
([2c05d78](https://togithub.com/mkdocstrings/mkdocstrings/commit/2c05d7854b87251e26c1a2e1810b85702ff110f3)
by Timothée Mazzucotelli). Co-authored-by: Oleh Prypin <oleh@pryp.in>

</details>

<details>
<summary>asottile/blacken-docs (misc-lint/blacken-docs)</summary>

###
[`v1.14.0`](https://togithub.com/asottile/blacken-docs/blob/HEAD/CHANGELOG.rst#&#8203;1140-2023-06-13)

[Compare
Source](https://togithub.com/asottile/blacken-docs/compare/1.13.0...1.14.0)

-   Support Python 3.12.

</details>

<details>
<summary>hadialqattan/pycln (misc-lint/pycln)</summary>

###
[`v2.1.5`](https://togithub.com/hadialqattan/pycln/releases/tag/v2.1.5)

[Compare
Source](https://togithub.com/hadialqattan/pycln/compare/v2.1.4...v2.1.5)

##### Changed

- [Widen `pathspec` version artificial lock by
@&#8203;hadialqattan](https://togithub.com/hadialqattan/pycln/pull/203)

###
[`v2.1.4`](https://togithub.com/hadialqattan/pycln/releases/tag/v2.1.4)

[Compare
Source](https://togithub.com/hadialqattan/pycln/compare/v2.1.3...v2.1.4)

##### Fixed

- [Detect third-party libs installed in editable mode by
@&#8203;hadialqattan](https://togithub.com/hadialqattan/pycln/pull/200)
- [Preserve the original line break format by @&#8203;maxbachmann &
@&#8203;hadialqattan](https://togithub.com/hadialqattan/pycln/pull/197)

##### Changed

- [Bump JRubics/poetry-publish from 1.16 to 1.17 by
@&#8203;dependabot\[bot\]](https://togithub.com/hadialqattan/pycln/pull/201)
- [Remove `pathspec` version artificial lock by
@&#8203;hadialqattan](https://togithub.com/hadialqattan/pycln/pull/199)
- [Bump codecov/codecov-action from 3.1.1 to 3.1.4 by
@&#8203;dependabot\[bot\]](https://togithub.com/hadialqattan/pycln/pull/198)
- [Bump typer from 0.7.0 to 0.9.0 by
@&#8203;dependabot\[bot\]](https://togithub.com/hadialqattan/pycln/pull/195)

</details>

<details>
<summary>astral-sh/ruff (misc-lint/ruff)</summary>

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

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

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

#### What's Changed

Highlights include a 7-10x decrease in Ruff's cache size.

##### Rules

- Add support for top-level quoted annotations in RUF013 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5235](https://togithub.com/astral-sh/ruff/pull/5235)
- Add support for nested quoted annotations in RUF013 by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5254](https://togithub.com/astral-sh/ruff/pull/5254)
- Move `compare-to-empty-string` (`PLC1901`) to nursery by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5264](https://togithub.com/astral-sh/ruff/pull/5264)
- Ignore Pydantic classes when evaluating `mutable-class-default`
(`RUF012`) by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5273](https://togithub.com/astral-sh/ruff/pull/5273)
- Allow `typing.Final` for `mutable-class-default annotations`
(`RUF012`) by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5274](https://togithub.com/astral-sh/ruff/pull/5274)
- Modify `deprecated-import` (`UP035`) to prefer `typing_extensions` in
some versions by [@&#8203;tjkuson](https://togithub.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/5291](https://togithub.com/astral-sh/ruff/pull/5291)

##### Bug Fixes

- Restore existing bindings when unbinding caught exceptions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5256](https://togithub.com/astral-sh/ruff/pull/5256)
- Avoid including nursery rules in linter-level selectors by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/5268](https://togithub.com/astral-sh/ruff/pull/5268)

#### New Contributors

- [@&#8203;jgberry](https://togithub.com/jgberry) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5221](https://togithub.com/astral-sh/ruff/pull/5221)

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

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

##### Settings

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

##### Caching

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

##### Jupyter

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

##### Bug Fixes

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

#### New Contributors

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

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

</details>

<details>
<summary>pytest-dev/pytest (pytest/pytest)</summary>

###
[`v7.4.0`](https://togithub.com/pytest-dev/pytest/releases/tag/7.4.0)

[Compare
Source](https://togithub.com/pytest-dev/pytest/compare/7.3.2...7.4.0)

# pytest 7.4.0 (2023-06-23)

## Features

- [#&#8203;10901](https://togithub.com/pytest-dev/pytest/issues/10901):
Added `ExceptionInfo.from_exception()
<pytest.ExceptionInfo.from_exception>`{.interpreted-text role="func"}, a
simpler way to create an `~pytest.ExceptionInfo`{.interpreted-text
role="class"} from an exception.
This can replace `ExceptionInfo.from_exc_info()
<pytest.ExceptionInfo.from_exc_info()>`{.interpreted-text role="func"}
for most uses.

## Improvements

- [#&#8203;10872](https://togithub.com/pytest-dev/pytest/issues/10872):
Update test log report annotation to named tuple and fixed inconsistency
in docs for `pytest_report_teststatus`{.interpreted-text role="hook"}
hook.

- [#&#8203;10907](https://togithub.com/pytest-dev/pytest/issues/10907):
When an exception traceback to be displayed is completely filtered out
(by mechanisms such as `__tracebackhide__`, internal frames, and
similar), now only the exception string and the following message are
shown:

"All traceback entries are hidden. Pass \[--full-trace]{.title-ref} to
see hidden and internal frames.".

Previously, the last frame of the traceback was shown, even though it
was hidden.

- [#&#8203;10940](https://togithub.com/pytest-dev/pytest/issues/10940):
Improved verbose output (`-vv`) of `skip` and `xfail` reasons by
performing text wrapping while leaving a clear margin for progress
output.

    Added `TerminalReporter.wrap_write()` as a helper for that.

- [#&#8203;10991](https://togithub.com/pytest-dev/pytest/issues/10991):
Added handling of `%f` directive to print microseconds in log format
options, such as `log-date-format`.

- [#&#8203;11005](https://togithub.com/pytest-dev/pytest/issues/11005):
Added the underlying exception to the cache provider's path creation and
write warning messages.

- [#&#8203;11013](https://togithub.com/pytest-dev/pytest/issues/11013):
Added warning when `testpaths`{.interpreted-text role="confval"} is set,
but paths are not found by glob. In this case, pytest will fall back to
searching from the current directory.

- [#&#8203;11043](https://togithub.com/pytest-dev/pytest/issues/11043):
When \[--confcutdir]{.title-ref} is not specified, and there is no
config file present, the conftest cutoff directory
(\[--confcutdir]{.title-ref}) is now set to the `rootdir
<rootdir>`{.interpreted-text role="ref"}.
Previously in such cases, \[conftest.py]{.title-ref} files would be
probed all the way to the root directory of the filesystem.
If you are badly affected by this change, consider adding an empty
config file to your desired cutoff directory, or explicitly set
\[--confcutdir]{.title-ref}.

- [#&#8203;11081](https://togithub.com/pytest-dev/pytest/issues/11081):
The `norecursedirs`{.interpreted-text role="confval"} check is now
performed in a `pytest_ignore_collect`{.interpreted-text role="hook"}
implementation, so plugins can affect it.

If after updating to this version you see that your
\[norecursedirs]{.title-ref} setting is not being respected,
it means that a conftest or a plugin you use has a bad
\[pytest_ignore_collect]{.title-ref} implementation.
Most likely, your hook returns \[False]{.title-ref} for paths it does
not want to ignore,
which ends the processing and doesn't allow other plugins, including
pytest itself, to ignore the path.
The fix is to return \[None]{.title-ref} instead of \[False]{.title-ref}
for paths your hook doesn't want to ignore.

- [#&#8203;8711](https://togithub.com/pytest-dev/pytest/issues/8711):
`caplog.set_level()
<pytest.LogCaptureFixture.set_level>`{.interpreted-text role="func"} and
`caplog.at_level()
<pytest.LogCaptureFixture.at_level>`{.interpreted-text role="func"}
will temporarily enable the requested `level` if `level` was disabled
globally via
    `logging.disable(LEVEL)`.

## Bug Fixes

- [#&#8203;10831](https://togithub.com/pytest-dev/pytest/issues/10831):
Terminal Reporting: Fixed bug when running in `--tb=line` mode where
`pytest.fail(pytrace=False)` tests report `None`.
- [#&#8203;11068](https://togithub.com/pytest-dev/pytest/issues/11068):
Fixed the `--last-failed` whole-file skipping functionality ("skipped N
files") for `non-python test files <non-python tests>`{.interpreted-text
role="ref"}.
- [#&#8203;11104](https://togithub.com/pytest-dev/pytest/issues/11104):
Fixed a regression in pytest 7.3.2 which caused to
`testpaths`{.interpreted-text role="confval"} to be considered for
loading initial conftests,
even when it was not utilized (e.g. when explicit paths were given on
the command line).
    Now the `testpaths` are only considered when they are in use.
- [#&#8203;1904](https://togithub.com/pytest-dev/pytest/issues/1904):
Fixed traceback entries hidden with `__tracebackhide__ = True` still
being shown for chained exceptions (parts after "... the above exception
..." message).
- [#&#8203;7781](https://togithub.com/pytest-dev/pytest/issues/7781):
Fix writing non-encodable text to log file when using `--debug`.

## Improved Documentation

- [#&#8203;9146](https://togithub.com/pytest-dev/pytest/issues/9146):
Improved documentation for `caplog.set_level()
<pytest.LogCaptureFixture.set_level>`{.interpreted-text role="func"}.

## Trivial/Internal Changes

- [#&#8203;11031](https://togithub.com/pytest-dev/pytest/issues/11031):
Enhanced the CLI flag for `-c` to now include `--config-file` to make it
clear that this flag applies to the usage of a custom config file.

###
[`v7.3.2`](https://togithub.com/pytest-dev/pytest/releases/tag/7.3.2)

[Compare
Source](https://togithub.com/pytest-dev/pytest/compare/7.3.1...7.3.2)

# pytest 7.3.2 (2023-06-10)

## Bug Fixes

- [#&#8203;10169](https://togithub.com/pytest-dev/pytest/issues/10169):
Fix bug where very long option names could cause pytest to break with
`OSError: [Errno 36] File name too long` on some systems.
- [#&#8203;10894](https://togithub.com/pytest-dev/pytest/issues/10894):
Support for Python 3.12 (beta at the time of writing).
- [#&#8203;10987](https://togithub.com/pytest-dev/pytest/issues/10987):
`testpaths`{.interpreted-text role="confval"} is now honored to load
root `conftests`.
- [#&#8203;10999](https://togithub.com/pytest-dev/pytest/issues/10999):
The \[monkeypatch]{.title-ref}
\[setitem]{.title-ref}/\[delitem]{.title-ref} type annotations now allow
\[TypedDict]{.title-ref} arguments.
- [#&#8203;11028](https://togithub.com/pytest-dev/pytest/issues/11028):
Fixed bug in assertion rewriting where a variable assigned with the
walrus operator could not be used later in a function call.
- [#&#8203;11054](https://togithub.com/pytest-dev/pytest/issues/11054):
Fixed `--last-failed`'s "(skipped N files)" functionality for files
inside of packages (directories with \[\__init\_\_.py]{.title-ref}
files).

</details>

<details>
<summary>pytest-dev/pytest-mock (pytest/pytest-mock)</summary>

###
[`v3.11.1`](https://togithub.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#&#8203;3111-2023-06-15)

[Compare
Source](https://togithub.com/pytest-dev/pytest-mock/compare/v3.11.0...v3.11.1)

(This release source code is identical to `3.11.0` except a small
internal fix to deployment/CI)

-   Fixed introspection for failed `assert_has_calls` (`#365`\_).

- Updated type annotations for `mocker.patch` and `mocker.spy`
(`#364`\_).

..
\_#&#820[https://github.com/pytest-dev/pytest-mock/pull/365](https://togithub.com/pytest-dev/pytest-mock/pull/365)ull/365
..
\[https://github.com/pytest-dev/pytest-mock/pull/364](https://togithub.com/pytest-dev/pytest-mock/pull/364)-mock/pull/364

###
[`v3.11.0`](https://togithub.com/pytest-dev/pytest-mock/blob/HEAD/CHANGELOG.rst#&#8203;3110-2023-06-15)

[Compare
Source](https://togithub.com/pytest-dev/pytest-mock/compare/v3.10.0...v3.11.0)

-   Fixed introspection for failed `assert_has_calls` (`#365`\_).

- Updated type annotations for `mocker.patch` and `mocker.spy`
(`#364`\_).

..
\_#&#820[https://github.com/pytest-dev/pytest-mock/pull/365](https://togithub.com/pytest-dev/pytest-mock/pull/365)ull/365
..
\[https://github.com/pytest-dev/pytest-mock/pull/364](https://togithub.com/pytest-dev/pytest-mock/pull/364)-mock/pull/364

</details>

<details>
<summary>python/mypy (typecheck/mypy)</summary>

### [`v1.4.0`](https://togithub.com/python/mypy/compare/v1.3.0...v1.4.0)

[Compare
Source](https://togithub.com/python/mypy/compare/v1.3.0...v1.4.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every 3 months on the first day of
the month" (UTC), 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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/AlexWaygood/typeshed-stats).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[behavior-change] RUF010 delete unnecessary str()

1 participant