From 4493b2cce1acc433eb3a21d0257fd69ec3476da5 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 28 May 2026 16:41:53 -0400 Subject: [PATCH] ci(anthropic): check version consistency in pre-commit (#37758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07b64ed1bc6..7bd987f0285 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -123,3 +123,9 @@ repos: entry: make -C libs/langchain_v1 check_version files: ^libs/langchain_v1/(pyproject\.toml|langchain/__init__\.py)$ 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