Skip to content

Commit bdfb3f6

Browse files
committed
chore: pin dev dependencies and restore uv check in codegen
1 parent 14f18a2 commit bdfb3f6

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

generate_models.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ if ! command -v git &> /dev/null; then
2727
exit 1
2828
fi
2929

30+
# Check if uv is installed before cloning or modifying generated files
31+
if ! command -v uv &> /dev/null; then
32+
echo "Error: uv not found."
33+
echo "Please install uv: curl -LsSf https://astral.sh/uv/install.sh | sh"
34+
exit 1
35+
fi
36+
3037
# UCP Version to use (if provided, use release/$1 branch; otherwise, use main)
3138
if [ -z "$1" ]; then
3239
BRANCH="main"

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ dependencies = [
2727

2828
[dependency-groups]
2929
dev = [
30-
"datamodel-code-generator[http,ruff]>=0.50.0",
30+
# Exact pins: the model-drift CI job regenerates the models against the
31+
# pinned UCP spec and asserts byte-identical output, so the codegen
32+
# toolchain must resolve reproducibly. Bump these pins and regenerate
33+
# the models in the same PR.
34+
"datamodel-code-generator[http]==0.71.0",
35+
"ruff==0.16.1",
3136
]
3237

3338
[build-system]

0 commit comments

Comments
 (0)