Skip to content

TICKET-037: Add edge case validation to CLI and workflow #58

Description

@belarusian

TICKET-037: Add edge case validation to CLI and workflow

Module: alloc/cli.py, alloc/utils/workflow.py
Priority: Medium — improve robustness

What to Implement

Add input validation:

  1. Empty tickers list → raise ValueError
  2. Zero/negative positions → raise ValueError
  3. Invalid JSON positions → meaningful error message
  4. Empty workflow result → graceful handling

Verification

  • pytest tests/ -x -q passes
  • ruff check alloc/ passes
  • mypy alloc/ --ignore-missing-imports passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions