Skip to content

fix(lint): install the caller's mise Python before pipx tools #502

Closed

Description

@DevSecNinja

When a calling repo configures Python as a mise tool (for example through .python-version, as DevSecNinja/ai-toolkit#247 does), mise requires that Python to be installed before any pipx: tool. The pipx backend always depends on python.

The reusable lint.yml installs only uv pipx:yamllint / uv pipx:checkov in those jobs. So they fail with:

requires configured install dependency 'python@3.14', but its selected version is not installed

Fix: in the jobs that install pipx: tools (yamllint, checkov, and any single-job-mode equivalent), install the repo's configured Python first. Do this only when the repo configures one (for example mise ls --current python returns a version), so repos without Python don't download one. Then cut a release.

Done when:

  • a caller with .python-version plus pipx:yamllint / pipx:checkov passes, in both parallel and single job modes
  • a caller without Python doesn't install Python
  • mise run test covers the condition where practical

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions