Skip to content

Commit 681329f

Browse files
authored
INPYTHON-563 Update uv locks as part of pre-commit (#110)
1 parent f74fb1d commit 681329f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ repos:
4747
args: [ --fix ]
4848
# Run the formatter.
4949
- id: ruff-format
50+
51+
- repo: local
52+
hooks:
53+
- id: update-locks
54+
name: update-locks
55+
entry: bash ./scripts/update-locks.sh
56+
language: python
57+
require_serial: true
58+
fail_fast: true
59+
additional_dependencies:
60+
- uv

scripts/update-locks.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
python -m uv lock
5+
6+
pushd libs/langgraph-checkpoint-mongodb
7+
python -m uv lock
8+
popd
9+
10+
pushd libs/langchain-mongodb
11+
python -m uv lock
12+
popd

0 commit comments

Comments
 (0)