Every partner package ships a `check_version.py` that guards against the
version in `pyproject.toml` drifting out of sync with the one in
`_version.py`, but only `anthropic` had that check registered as a
pre-commit hook. The other 14 partners had the script and `make
check_version` target sitting unused — a mismatch would sail through
`git commit` undetected. This registers the missing hooks so the guard
actually runs.
Local pre-commit already verified `pyproject.toml`/version-file sync for
`core` and `langchain_v1`, but not `anthropic` — even though the
`check_core_versions.yml` CI workflow already gates all three. This
wires the existing `anthropic` check into pre-commit so the mismatch
gets caught before commit rather than only in CI.
This calls `make format` on projects that have modified files.
So `poetry install --with lint` must have been done for those projects.
---------
Co-authored-by: Erick Friis <erick@langchain.dev>