Skip to content

Comments

refactor: extract validation and path helpers to utils modules (fixes #3)#11

Open
autogainz wants to merge 7 commits intoApexOpsStudio:mainfrom
autogainz:refactor/extract-validation-to-utils
Open

refactor: extract validation and path helpers to utils modules (fixes #3)#11
autogainz wants to merge 7 commits intoApexOpsStudio:mainfrom
autogainz:refactor/extract-validation-to-utils

Conversation

@autogainz
Copy link

Centralizes validation and path logic into dedicated utils modules to eliminate duplication across command files.

Changes:

  • Created utils/paths.py with get_tasks_file() helper
  • Created utils/validation.py with validate_description(), validate_task_file(), and validate_task_id()
  • Updated all command files (add.py, list.py, done.py) to import from utils
  • Updated test imports to use utils

No behavior changes; all existing tests pass. This is a pure refactor to improve code maintainability and reduce duplication.

Payment address: 0xC50982e88dae25cf117a7eee7B489bc8a1FFD21a (USDC on Base)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant