A Hatch plugin that uses pip-compile (from pip-tools) to manage project dependencies, generating lockfiles and resolving versions. Current version 1.11.6, updated January 2026. Active development with regular bug fixes.
pip install hatch-pip-compileVerified import paths — ran on the pinned version, not inferred.
Enable pip-compile lockfile management for Hatch environments by adding configuration to pyproject.toml.
Add 'installer = "uv"' to [tool.hatch.envs.default] in pyproject.toml if you want uv-based resolution.
Use 'from hatch_pip_compile.plugin import HatchPipCompileBase' instead of the previous class.
Ensure environment variable is exactly HATCH_PIP_COMPILE_LOCKFILE (all caps) to override lockfile path.