Skip to content

Add optional pre-commit install step #138

@blink1073

Description

@blink1073

As we're switching more libraries to use pre-commit, it would be handy to have an option install pre-commit on editable installs. This should be a config option like:

[tool.jupyter-packaging]
install-pre-commit = True

That runs the following after the setuptools build_editable hook:

subprocess.run([sys.executable, '-m', 'pre_commit', 'install'])

We'd need to add a dependency on pre_commit, which is already on conda-forge.

This depends on #103

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions