QUAL002infoPro

unnamed-thread

Threads without names are hard to identify in debugging tools

Applies to: Python

Why this matters

When you create a thread without a name, it shows up as 'Thread-1', 'Thread-2', etc. in debuggers and logs. Naming your threads makes it much easier to understand what each thread is doing when debugging issues.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, QUAL002 includedstablestack explain QUAL002

QUAL002 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: QUAL002