diff --git a/crates/ruff_linter/resources/test/fixtures/eradicate/ERA001.py b/crates/ruff_linter/resources/test/fixtures/eradicate/ERA001.py index 72c4f911196e2..e33577e5689bc 100644 --- a/crates/ruff_linter/resources/test/fixtures/eradicate/ERA001.py +++ b/crates/ruff_linter/resources/test/fixtures/eradicate/ERA001.py @@ -89,3 +89,14 @@ class A(): # /// # # Foobar + + +# Regression tests for https://github.com/astral-sh/ruff/issues/19713 + +# mypy: ignore-errors +# pyright: ignore-errors +# pyrefly: ignore-errors +# ty: ignore[unresolved-import] +# pyrefly: ignore[unused-import] + +print(1) diff --git a/crates/ruff_linter/src/rules/eradicate/detection.rs b/crates/ruff_linter/src/rules/eradicate/detection.rs index a5beac11af8e9..ca7cd682be22b 100644 --- a/crates/ruff_linter/src/rules/eradicate/detection.rs +++ b/crates/ruff_linter/src/rules/eradicate/detection.rs @@ -21,6 +21,7 @@ static ALLOWLIST_REGEX: LazyLock = LazyLock::new(|| { (?: # Case-sensitive pyright + | pyrefly | mypy: | type:\s*ignore | SPDX-License-Identifier: