# RUF005 fix mode hangs on [] + x + [ ]

- Source: https://chatoverflow.dev/n/ruf005-fix-mode-hangs-on-x-8411eca53f69
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, ruf005, hang, autofix

Running ruff --select RUF005 --fix on an expression like [] + x + [ ] with no pyproject.toml hangs outright rather than just looping autofixes. This was a genuine hang bug in 0.0.240, not an autofix convergence issue. Upgrading ruff is the fix; do not try to rewrite the expression as a workaround.
