Skip to content

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

Closed

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions