Summary
prek can currently only be run via the prek command and does not work with python -m prek. Please add support for running prek as a Python module.
Motivation
- Consistency: Many Python CLI tools (e.g. black, ruff, uv) support
python -m <package>.
- Virtual environments:
python -m prek makes it clear which Python interpreter (and thus which venv) is used.
- Scripts and CI: Using
python -m prek makes the execution environment explicit.
- IDE and tool integration: Some tools only support the
python -m form.
(I am willing to submit a PR)
Summary
prek can currently only be run via the prek command and does not work with
python -m prek. Please add support for running prek as a Python module.Motivation
python -m <package>.python -m prekmakes it clear which Python interpreter (and thus which venv) is used.python -m prekmakes the execution environment explicit.python -mform.(I am willing to submit a PR)