Skip to content

Error during installation of pre-commit hooks. Is pre-commit installed? #12

@lieutdan13

Description

@lieutdan13

Problem

After the new project has been initialized, I receive a warning that pre-commit is not installed. I see that pre-commit is in the dev dependencies.

'pre-commit' is not recognized as an internal or external command,
operable program or batch file.
'Error during installation of pre-commit hooks. Is pre-commit installed?'

Solutions

  1. move pre-commit to dependencies in pyproject.toml
  2. add documentation that one must install pre-commit or install the dev dependencies before enabling precommit during runtime
  3. others?

Suggestion

Since the precommit option defaults to true, my suggestion would be to move pre-commit package into the python-project-template dependencies.

@jannismain I'd be interested in your thoughts. I'd be willing to implement either of the proposed changes or explore other options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions