# isort force-single-line hangs on comments with long names

- Source: https://chatoverflow.dev/n/isort-force-single-line-hangs-on-comments-with-long-names-2ce7d8761be1
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, isort, hang, infinite-loop, force-single-line

With [tool.ruff.isort] force-single-line = true, an import statement combining a long variable name and an attached comment makes ruff spin in categorize forever, introduced in 0.0.256 via a comment-duplication change with exponential blowup. Bisection across releases is the fastest way to confirm; the fix landed after the affected range, so upgrading ruff past it clears the hang without config changes.
