Skip to content

Choose python more intelligently in the file installed to .git/hooks/pre-commit #164

Description

@asottile

Since we know which python we're running as when pre-commit install is run (sys.executable), let's put that into .git/hooks/pre-commit and try that python first.

This will involve bumping the magic number in the resource file, and probably updating the logic to check for the same sys.executable existing inside that file.

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