Skip to content

Conversation

ntBre
Copy link
Contributor

@ntBre ntBre commented Sep 4, 2025

This one has been a bit contentious in the past. It usually uncovers ~700 ecosystem hits. See:

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.

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.
@ntBre ntBre added this to the v0.13 milestone Sep 4, 2025
@ntBre ntBre added the rule Implementing or modifying a lint rule label Sep 4, 2025
Copy link
Contributor

github-actions bot commented Sep 4, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+573 -0 violations, +0 -0 fixes in 17 projects; 38 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 (+10 -0 violations, +0 -0 fixes)

+ 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
+ tests/core/test_migrate.py:877:30: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/engine/test_validation.py:146:62: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/engine/test_validation.py:352:47: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/engine/test_validation.py:390:47: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/engine/test_validation.py:907:47: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/graph_components/validators/test_default_recipe_validator.py:462:54: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw

apache/airflow (+126 -0 violations, +0 -0 fixes)

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

+ airflow-core/tests/unit/cli/commands/test_connection_command.py:744:17: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/cli/commands/test_legacy_commands.py:49:19: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/core/test_configuration.py:1785:23: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/dag_processing/bundles/test_dag_bundle_manager.py:380:58: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_backfill.py:490:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_backfill.py:81:19: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_dag.py:3270:34: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_pool.py:314:48: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_pool.py:318:52: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ airflow-core/tests/unit/models/test_taskinstance.py:398:46: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 116 additional changes omitted for project

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

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

+ tests/integration_tests/db_engine_specs/hive_tests.py:256:19: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit_tests/db_engine_specs/test_doris.py:176:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit_tests/sql/parse_tests.py:1683:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw

bokeh/bokeh (+3 -0 violations, +0 -0 fixes)

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

+ tests/unit/bokeh/core/test_properties.py:395:48: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/bokeh/core/test_properties.py:398:48: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/bokeh/core/test_properties.py:401:48: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw

ibis-project/ibis (+21 -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
+ ibis/backends/tests/test_generic.py:456:34: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/tests/test_generic.py:461:34: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/tests/test_vectorized_udf.py:355:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ ibis/backends/tests/test_vectorized_udf.py:476:41: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 11 additional changes omitted for project

langchain-ai/langchain (+57 -0 violations, +0 -0 fixes)

+ libs/core/tests/unit_tests/indexing/test_indexing.py:503:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:511:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:547:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:560:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:840:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:848:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:884:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/indexing/test_indexing.py:892:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/prompts/test_chat.py:176:27: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ libs/core/tests/unit_tests/prompts/test_chat.py:571:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 47 additional changes omitted for project

lnbits/lnbits (+29 -0 violations, +0 -0 fixes)

+ tests/regtest/test_real_invoice.py:246:44: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:106:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:112:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:120:27: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:127:27: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:135:27: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:144:27: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_fiat_providers.py:175:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_helpers.py:12:42: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/unit/test_helpers.py:17:15: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
... 19 additional changes omitted for project

milvus-io/pymilvus (+6 -0 violations, +0 -0 fixes)

+ tests/test_bulk_writer_validators.py:115:51: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_bulk_writer_validators.py:185:51: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_bulk_writer_validators.py:231:51: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_bulk_writer_validators.py:61:51: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_milvus_client.py:23:54: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw
+ tests/test_milvus_client.py:26:54: RUF043 Pattern passed to `match=` contains metacharacters but is neither escaped nor raw

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

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
RUF043 573 573 0 0 0

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre
Copy link
Contributor Author

ntBre commented Sep 5, 2025

After going through the ecosystem checks, I realized we should probably expand the docs slightly to explain why each Use instead example suppresses the lint. This was also discussed a bit on #16690.

All of the ecosystem hits look like true positives, though.

@ntBre ntBre marked this pull request as ready for review September 5, 2025 13:29
@ntBre ntBre merged commit ff904c3 into brent/0.13.0 Sep 5, 2025
35 checks passed
@ntBre ntBre deleted the brent/ruf043 branch September 5, 2025 18:01
@ntBre ntBre mentioned this pull request Sep 5, 2025
2 tasks
ntBre added a commit that referenced this pull request Sep 8, 2025
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.
ntBre added a commit that referenced this pull request Sep 10, 2025
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.
ntBre added a commit that referenced this pull request Sep 10, 2025
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.
ntBre added a commit that referenced this pull request Sep 10, 2025
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.
dcreager added a commit that referenced this pull request Sep 10, 2025
* main: (26 commits)
  Ignore deprecated rules unless selected by exact code (#20167)
  Stabilize adding future import via config option (#20277)
  [`flake8-errmsg`] Stabilize extending `raw-string-in-exception` (`EM101`) to support byte strings (#20273)
  Stabilize the remaining Airflow rules (#20250)
  [`flake8-bugbear`] Stabilize support for non-context-manager calls in `assert-raises-exception` (`B017`) (#20274)
  [`flake8-commas`] Stabilize support for trailing comma checks in type parameter lists (`COM812`, `COM819`) (#20275)
  [`pygrep_hooks`] Stabilize using`AsyncMock` methods in `invalid-mock-access` (`PGH005`) (#20272)
  Stabilize new strategy for classifying imports as first party (#20268)
  [`pylint`] Stabilize ignoring `__init__.py` for `useless-import-alias` (`PLC0414`) (#20271)
  [`pylint`] Stabilize adding U+061C to `bidirectional-unicode` (`PLE2502`) (#20276)
  [`flake8-simplify`] Stabilize fix safety of `multiple-with-statements` (`SIM117`) (#20270)
  Stabilize `pytest-raises-ambiguous-pattern` (`RUF043`) (#20253)
  Stabilize `f-string-number-format` (`FURB116`) (#20247)
  [`pyupgrade`] Remove `non-pep604-isinstance` (`UP038`) (#19156)
  [`pandas-vet`] Remove `pandas-df-variable-name` (`PD901`) (#19223)
  Remove deprecated macOS config file discovery (#19210)
  Stabilize `redundant-none-literal` (`PYI061`) (#20236)
  Stabilize `generic-not-last-base-class` (`PYI059`) (#20246)
  Stabilize `useless-class-metaclass-type` (`UP050`) (#20230)
  Stabilize `os-symlink` (`PTH211`) (#20229)
  ...
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.

2 participants