Skip to content

refactor: review & simplify nsc/cli/handlers.py #47

@thomaschristory

Description

@thomaschristory

Scope

nsc/cli/handlers.py (660 lines) — the largest file in the codebase.

Goal

Code review + simplify pass:

  • Identify dead branches or over-defensive conditionals
  • Extract any logic that belongs in a lower layer (model/, output/)
  • Reduce cyclomatic complexity where possible
  • Ensure all type annotations are tight (mypy --strict clean, no Any escapes)
  • Remove or tighten comments that describe what rather than why

Files

  • nsc/cli/handlers.py
  • Related tests: tests/cli/

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorCode cleanup, simplification, review

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions