mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user