Skip to content

Conversation

ntBre
Copy link
Contributor

@ntBre ntBre commented Sep 1, 2025

@ntBre ntBre added breaking Breaking API change release Related to the release process labels Sep 1, 2025
@ntBre ntBre changed the title TODO drop this empty commit Ruff 0.13 Sep 1, 2025
Copy link
Contributor

github-actions bot commented Sep 1, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+1621 -22 violations, +432 -0 fixes in 29 projects; 26 projects unchanged)

DisnakeDev/disnake (+14 -0 violations, +0 -0 fixes)

+ tests/test_embeds.py:353:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:359:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:365:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:371:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:393:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:400:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:406:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_embeds.py:412:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_flags.py:163:45: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_flags.py:167:45: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 4 additional changes omitted for project

RasaHQ/rasa (+49 -0 violations, +0 -0 fixes)

+ rasa/telemetry.py:594:30: RUF059 Unpacked variable `tb` is never used
+ rasa/telemetry.py:594:9: RUF059 Unpacked variable `exc_type` is never used
+ tests/cli/test_rasa_export.py:278:5: RUF059 Unpacked variable `events` is never used
+ tests/core/evaluation/test_marker.py:287:13: RUF059 Unpacked variable `expected` is never used
+ tests/core/evaluation/test_marker.py:307:13: RUF059 Unpacked variable `expected` is never used
+ tests/core/evaluation/test_marker.py:558:13: RUF059 Unpacked variable `expected_size` is never used
... 34 additional changes omitted for rule RUF059
+ tests/core/test_migrate.py:1066:30: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/core/test_migrate.py:1116:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/core/test_migrate.py:680:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/core/test_migrate.py:720:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 39 additional changes omitted for project

Snowflake-Labs/snowcli (+15 -14 violations, +0 -0 fixes)

+ scripts/cleanup.py:14:1: I001 [*] Import block is un-sorted or un-formatted
- src/snowflake/cli/_plugins/connection/util.py:15:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/logs/manager.py:1:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/logs/utils.py:1:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py:14:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/spcs/compute_pool/manager.py:15:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/spcs/image_repository/manager.py:15:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/sql/manager.py:15:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/stage/diff.py:15:1: I001 [*] Import block is un-sorted or un-formatted
+ src/snowflake/cli/_plugins/streamlit/manager.py:15:1: I001 [*] Import block is un-sorted or un-formatted
... 19 additional changes omitted for project

apache/airflow (+251 -0 violations, +314 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ airflow-core/docs/conf.py:21:1: I001 [*] Import block is un-sorted or un-formatted
+ airflow-core/src/airflow/api_fastapi/auth/managers/base_auth_manager.py:80:22: PYI059 `Generic[]` should always be the last base class
+ airflow-core/src/airflow/api_fastapi/common/exceptions.py:38:23: PYI059 `Generic[]` should always be the last base class
+ airflow-core/src/airflow/api_fastapi/core_api/base.py:52:16: PYI059 `Generic[]` should always be the last base class
+ airflow-core/src/airflow/api_fastapi/core_api/services/public/common.py:37:18: PYI059 `Generic[]` should always be the last base class
+ airflow-core/src/airflow/api_fastapi/execution_api/deps.py:140:21: RUF059 Unpacked variable `exc` is never used
- airflow-core/src/airflow/cli/commands/rotate_fernet_key_command.py:36:5: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ airflow-core/src/airflow/cli/commands/rotate_fernet_key_command.py:36:5: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
+ airflow-core/src/airflow/configuration.py:1667:22: RUF059 Unpacked variable `source` is never used
+ airflow-core/src/airflow/configuration.py:725:25: RUF059 Unpacked variable `should_continue` is never used
+ airflow-core/src/airflow/dag_processing/manager.py:854:25: PTH211 `os.symlink` should be replaced by `Path.symlink_to`
+ airflow-core/src/airflow/dag_processing/manager.py:860:21: PTH211 `os.symlink` should be replaced by `Path.symlink_to`
+ airflow-core/src/airflow/executors/local_executor.py:223:25: RUF059 Unpacked variable `exc` is never used
... 552 additional changes omitted for project

apache/superset (+19 -3 violations, +62 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ scripts/check-env.py:67:24: RUF059 Unpacked variable `supported_max` is never used
+ superset/commands/report/alert.py:173:13: RUF059 Unpacked variable `executor` is never used
- superset/db_engine_specs/gsheets.py:376:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ superset/db_engine_specs/gsheets.py:376:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
- superset/models/core.py:579:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ superset/models/core.py:579:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
+ superset/models/core.py:770:9: RUF059 Unpacked variable `cursor` is never used
- superset/sql_lab.py:658:5: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ superset/sql_lab.py:658:5: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
... 57 additional changes omitted for rule SIM117
+ tests/integration_tests/core_tests.py:284:21: RUF059 Unpacked variable `tests` is never used
... 74 additional changes omitted for project

binary-husky/gpt_academic (+58 -0 violations, +10 -0 fixes)

+ crazy_functions/Conversation_To_File.py:223:9: RUF059 Unpacked variable `html` is never used
+ crazy_functions/Dynamic_Function_Generate.py:195:19: RUF059 Unpacked variable `installation_advance` is never used
+ crazy_functions/Latex_Function.py:382:18: RUF059 Unpacked variable `downloaded` is never used
+ crazy_functions/Mermaid_Figure_Gen.py:327:35: RUF059 Unpacked variable `page_one` is never used
+ crazy_functions/Social_Helper.py:70:17: RUF059 Unpacked variable `err_msg` is never used
+ crazy_functions/Vectorstore_QA.py:107:5: RUF059 Unpacked variable `resp` is never used
... 53 additional changes omitted for rule RUF059
- crazy_functions/review_fns/data_sources/openalex_source.py:115:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ crazy_functions/review_fns/data_sources/openalex_source.py:115:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
- crazy_functions/review_fns/data_sources/openalex_source.py:22:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ crazy_functions/review_fns/data_sources/openalex_source.py:22:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
... 58 additional changes omitted for project

bokeh/bokeh (+28 -0 violations, +44 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

- src/bokeh/application/handlers/code.py:157:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ src/bokeh/application/handlers/code.py:157:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
+ src/bokeh/sphinxext/bokeh_model.py:121:34: RUF059 Unpacked variable `arglist` is never used
+ src/bokeh/sphinxext/bokeh_model.py:121:43: RUF059 Unpacked variable `retann` is never used
+ src/bokeh/sphinxext/bokeh_model.py:121:9: RUF059 Unpacked variable `name_prefix` is never used
+ src/bokeh/sphinxext/bokeh_options.py:108:36: RUF059 Unpacked variable `arglist` is never used
+ src/bokeh/sphinxext/bokeh_options.py:108:45: RUF059 Unpacked variable `retann` is never used
+ src/bokeh/sphinxext/bokeh_options.py:108:9: RUF059 Unpacked variable `name_prefix` is never used
... 20 additional changes omitted for rule RUF059
- tests/unit/bokeh/command/subcommands/test_json__subcommands.py:92:9: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements
+ tests/unit/bokeh/command/subcommands/test_json__subcommands.py:92:9: SIM117 [*] Use a single `with` statement with multiple contexts instead of nested `with` statements
... 62 additional changes omitted for project

freedomofpress/securedrop (+1 -0 violations, +0 -0 fixes)

+ journalist_gui/test_gui.py:1:1: I001 [*] Import block is un-sorted or un-formatted

ibis-project/ibis (+23 -0 violations, +0 -0 fixes)

+ ibis/backends/bigquery/tests/system/test_connect.py:280:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/clickhouse/tests/test_client.py:431:40: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/flink/tests/test_ddl.py:141:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/impala/tests/test_exprs.py:593:48: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/pyspark/tests/test_udf.py:72:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/tests/test_client.py:350:34: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 16 additional changes omitted for rule RUF043
+ ibis/backends/tests/test_set_ops.py:40:12: RUF059 Unpacked variable `c` is never used
+ ibis/backends/tests/test_set_ops.py:40:25: RUF059 Unpacked variable `dc` is never used
... 15 additional changes omitted for project

... Truncated remaining completed project reports due to GitHub comment length restrictions

Changes by rule (11 rules affected)

code total + violation - violation + fix - fix
RUF059 980 980 0 0 0
RUF043 573 573 0 0 0
SIM117 432 0 0 432 0
I001 36 22 14 0 0
PYI061 21 21 0 0 0
PTH211 12 12 0 0 0
PYI059 10 10 0 0 0
ANN201 4 2 2 0 0
RUF100 4 0 4 0 0
D212 2 1 1 0 0
UP038 1 0 1 0 0

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

ntBre and others added 15 commits September 4, 2025 16:18
The tests looked good. For the docs, I added a `## See also` section
pointing to
the closely-related F841 (unused-variable) and the corresponding section
to F841
pointing back to RUF059. It seems like you'd probably want both of these
active
or at least to know about the other when reading the docs.
Summary
--

Rule and test/snapshot updated, the docs look good

My one hesitation here is that we could hold off stabilizing the rule
until its fix is also ready for stabilization, but this is also the only
preview PTH rule, so I think it's okay to stabilize the rule and later
(probably in the next minor release) stabilize the fixes together.
Tests and docs look good

We nearly stabilized this last time
(#18601), but it needed one more
bug fix and a documentation improvement
(#18611)
## Summary
In #11115 we moved from defaulting to $HOME/Library/Application Support
to $XDG_HOME on macOS and added a deprecation warning if we find files
in the old location. So this PR removes the warning
closes #19145 

## Test Plan
Ran `cargo test`
## Summary
closes #7710 

## Test Plan

It is is removal so i don't think we have to add tests otherwise i have
followed test plan mentioned in contributing.md

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
## Summary
This PR Removes deprecated UP038 as per instructed in #18727 
closes #18727 
## Test Plan
I have run tests non of them failing 

One Question i have is do we have to document that UP038 is removed?

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
This one has been a bit contentious in the past. It usually uncovers
~700 ecosystem hits. See:

- #16657
- #16690

But I think there's consensus that it's okay to merge as-is. We'd love
an
autofix since it's so common, but we can't reliably tell what a user
meant. The
pattern is ambiguous after all 😆

This is the first rule that actually needed its test case relocated, but
the
docs looked good.
…` (`SIM117`) (#20270)

Introduced in #18208. Removed gating, updated tests and docs.
…02`) (#20276)

Introduced in #20106. Removed gating. Updated tests. No documentation to
update.
…` (`PLC0414`) (#20271)

Stabilizes change from #18400. Removed gating, updated docs, updated
tests.
This stabilizes the behavior introduced in #16565 which (roughly) tries
to match an import like `import a.b.c` to an actual directory path
`a/b/c` in order to label it as first-party, rather than simply looking
for a directory `a`.

Mainly this affects the sorting of imports in the presence of namespace
packages, but a few other rules are affected as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking API change release Related to the release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants