Skip to content

Cannot specify custom Python shebang for hook executable #1312

@kbsezginel

Description

@kbsezginel

I am working on a shared Python environment with python3.6 as executable and I want the shebang to point to the correct executable #!/usr/bin/env python3.6. However, even though I specify

default_language_version:
    python: python3.6

or language_version: python3.6 in hooks, it always picks #!/usr/bin/env python as the shebang even though there is no python executable. Is there a way to specify a custom shebang?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions