Skip to content

PoC: port check-prerequisites to Python with output-parity tests #3279

Description

@mnriem

Part of #3277. Depends on the py script type foundation.

Why: The smallest self-contained command that exercises git lookup, path resolution, file checks, and both JSON + text output — ideal to prove the pattern.

Tasks

  • Implement scripts/python/check_prerequisites.py replicating all flags: --json, --paths-only, --require-tasks, --include-tasks, --help.
  • Port the needed common.sh / common.ps1 helpers (feature-path resolution, branch detection) into a shared Python module.
  • Replace jq logic with stdlib json.

Acceptance

  • Golden-output tests assert normalized parity between .sh, .ps1, and .py for each flag combination on a fixture repo.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions