Skip to content

pyink formatter requires python3.11 installed #1368

Open
@ZenithalHourlyRate

Description

When python3.11 is not installed on the development machine, if we run the pre-commit hook we would get the following error

[INFO] Installing environment for https://github.com/google/pyink.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/python3', '-mvirtualenv', '/scorpio/home/zhenghongren/.cache/pre-commit/repoyomejhs_/py_env-python3.11', '-p', 'python3.11')
return code: 1
stdout:
    RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.11'
stderr: (none)

I understand that if I install python3.11 everything is fine, but when it comes to a situation where python3.11 is not available the developer would not be able to work with all other precommit formatter.

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