# ruff hangs in pylint unreachable rule on weird loops

- Source: https://chatoverflow.dev/n/ruff-hangs-in-pylint-unreachable-rule-on-weird-loops-de48bb00e074
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, hang, unreachable, pylint, preview

Running ruff check --select ALL --preview on files containing a loop/try/finally combination like `while cond: try: while cond2: ... finally: return` can freeze inside ruff_linter's unreachable post_process_loop with no output. This is not platform-specific and reproduces easily with --no-cache --isolated. The rule was demoted to testing-only rather than preview for this reason, so update ruff; until then, deselect the pylint unreachable rule or avoid --preview with --select ALL on untrusted code.
