ruff/crates/ruff_linter
Takayuki Maeda 151ba49b36
[pyupgrade] Prevent infinite loop with I002 and UP026 (#20327)
## Summary

Fixes #19842

Prevent infinite loop with I002 and UP026

- Implement isort-aware handling for UP026 (deprecated mock import):
- Add CLI integration tests in crates/ruff/tests/lint.rs:

## Test Plan

I have added two integration tests
`pyupgrade_up026_respects_isort_required_import_fix` and
`pyupgrade_up026_respects_isort_required_import_from_fix` in
`crates/ruff/tests/lint.rs`.
2025-09-12 15:45:26 -05:00
..
resources [flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004) (#20318) 2025-09-12 19:27:17 +00:00
src [pyupgrade] Prevent infinite loop with I002 and UP026 (#20327) 2025-09-12 15:45:26 -05:00
Cargo.toml Bump 0.13.0 (#20336) 2025-09-10 12:11:22 -04:00