Skip to content

refactor: extract validation helpers#97

Open
nicovaleops wants to merge 1 commit into
ApexOpsStudio:mainfrom
nicovaleops:extract-validation-utils
Open

refactor: extract validation helpers#97
nicovaleops wants to merge 1 commit into
ApexOpsStudio:mainfrom
nicovaleops:extract-validation-utils

Conversation

@nicovaleops
Copy link
Copy Markdown

Closes #3.

This PR extracts the duplicated task-file and validation logic into shared utility modules.

Changes included:

  • moves task-file path handling into utils/paths.py
  • moves description, task id, and task-file validation into utils/validation.py
  • updates add/list/done commands to use the shared helpers
  • adds tests covering the shared path and validation helpers

Validation:

  • python3 -m compileall commands utils task.py passed locally
  • full pytest could not be run in this environment because pytest is not installed

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.

Refactor: Extract validation to utils module

1 participant