Skip to content

refactor: extract validation and path utilities to utils module#32

Open
4500-max wants to merge 1 commit intoApexOpsStudio:mainfrom
4500-max:refactor/extract-validation-utils
Open

refactor: extract validation and path utilities to utils module#32
4500-max wants to merge 1 commit intoApexOpsStudio:mainfrom
4500-max:refactor/extract-validation-utils

Conversation

@4500-max
Copy link

/claim #3

Summary

This PR extracts scattered validation logic into a centralized utils module as requested in issue #3.

Changes

  • Created utils directory with proper init.py
  • Created utils/paths.py with get_tasks_file() helper
  • Created utils/validation.py with validate_description(), validate_task_file(), validate_task_id()
  • Updated all commands to import from utils
  • Updated tests to import from utils
  • Added .gitignore for pycache

Acceptance Criteria

  • All validation logic in utils/validation.py
  • All path helpers in utils/paths.py
  • All commands updated to use shared utilities
  • Tests still pass (no behavior changes)
  • No duplicate validation code in command files

Testing

All 2 tests pass. This is a pure refactor with no behavior changes.

- Create utils/ directory with proper __init__.py
- Move get_tasks_file() to utils/paths.py
- Move validate_description(), validate_task_file(), validate_task_id() to utils/validation.py
- Update all commands to import from utils module
- Update tests to import from utils module
- Add .gitignore for __pycache__

All existing tests pass. No behavior changes - pure refactor.

/claim ApexOpsStudio#3
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