ci(anthropic): check version consistency in pre-commit (#37758)

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 commit is contained in:
Mason Daugherty
2026-05-28 16:41:53 -04:00
committed by GitHub
parent 133887180e
commit 4493b2cce1

View File

@@ -123,3 +123,9 @@ repos:
entry: make -C libs/langchain_v1 check_version entry: make -C libs/langchain_v1 check_version
files: ^libs/langchain_v1/(pyproject\.toml|langchain/__init__\.py)$ files: ^libs/langchain_v1/(pyproject\.toml|langchain/__init__\.py)$
pass_filenames: false pass_filenames: false
- id: anthropic-version
name: check anthropic version consistency
language: system
entry: make -C libs/partners/anthropic check_version
files: ^libs/partners/anthropic/(pyproject\.toml|langchain_anthropic/_version\.py)$
pass_filenames: false