Skip to content

Bug: prek uses incompatible python version #36

@jvllmr

Description

@jvllmr

Pre-submission checks

  • I am not filing a feature request. These should be filed via the feature request form instead.
  • I am filing an issue for zizmor-pre-commit, not for zizmor itself. Bug reports for zizmor should be filed against zizmorcore/zizmor.
  • I have checked the Troubleshooting Guide for my problem.
  • I have looked through both the open and closed issues for a duplicate report.

zizmor-pre-commit version

v1.22.0

Expected behavior

prek creates a virtual environment which is compatible with zizmor

Actual behavior

prek creates a virtual environment with python 3.9, which is the lowest version prek/uv supports. But zizmor does not support python 3.9

Reproduction steps

  1. Add zizmor hook
- repo: https://github.com/woodruffw/zizmor-pre-commit
    rev: v1.22.0
    hooks:
      - id: zizmor
        args:
          - --fix=all
  1. Install prek with pipx install prek
  2. Run prek with prek

Logs

-> pipx install prek
installed package prek 0.3.2, installed using Python 3.14.2
  These apps are now globally available
    - prek
done! ✨ 🌟 ✨


-> prek

error: Failed to install hook `zizmor`
  caused by: Command `uv pip` exited with an error:

[status]
exit status: 1

[stderr]
Using Python 3.9.25 environment at: /home/jan/.cache/prek/hooks/python-LlUdZMflzMHmAkYDxm3F
× No solution found when resolving dependencies:
╰─▶ Because the current Python version (3.9.25) does not satisfy Python>=3.10 and zizmor==1.22.0 depends on Python>=3.10, we can conclude that zizmor==1.22.0 cannot be used.
And because zizmor-pre-commit==0.0.0 depends on zizmor==1.22.0, we can conclude that zizmor-pre-commit==0.0.0 cannot be used.
And because only zizmor-pre-commit==0.0.0 is available and you require zizmor-pre-commit, we can conclude that your requirements are unsatisfiable.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions