mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-26 18:06:43 +00:00
<!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Fixes #20235 • Fix `RUF102` to properly handle rule redirects when validating noqa codes • Update `code_is_valid` to check redirect targets before determining validity • Add test case for rule redirects (TCH002 in this case) ## Test Plan <!-- How was it tested? --> I have added a test case for rule redirects to `crates/ruff_linter/resources/test/fixtures/ruff/RUF102.py`. |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||