Skip to content

Commit 5ae3fcd

Browse files
fix: move pyyaml dependency from pre-commit config to build container
The pkg-gen hook uses `language: script`, which doesn't support `additional_dependencies`. Move pyyaml to the `uv run --with` command in run.sh where the build actually executes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2de7a4b commit 5ae3fcd

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ repos:
5151
pass_filenames: false
5252
require_serial: true
5353
always_run: true
54-
additional_dependencies:
55-
- uv>=0.9.0
56-
- ruamel.yaml>=0.18.0
57-
- pyyaml>=6.0.2
5854

5955
- id: doc-gen
6056
name: Distribution Documentation

build/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ exec "$runtime" run --rm \
3232
-v "$REPO_ROOT:/workspace:z" \
3333
-w /workspace \
3434
"$IMAGE" \
35-
uv run --with ruamel.yaml --with pydantic-settings build/build.py
35+
uv run --with ruamel.yaml --with pydantic-settings --with pyyaml build/build.py

distribution/requirements-lock.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ beautifulsoup4==4.15.0 \
135135
# docling-slim
136136
# markdownify
137137
# markitdown
138-
boto3==1.43.46 \
139-
--hash=sha256:66c0d943b049a46a492ec4ec2ebe73c930b1842c7137bee83aad6d93e95d4d96 \
140-
--hash=sha256:69453e2c1bcb9fd9806527ab99950cacfc2826cb0dce9a3a0414d19270c06c3c
138+
boto3==1.43.47 \
139+
--hash=sha256:09a8ce4abab4391bf08315e2dcc449b4b33e97ce7654ee9398d9fe4ef73a33da \
140+
--hash=sha256:aef0cccd5bc4a443fb3e64fada023f7b5b9da36864cb4255b68cf93067476676
141141
# via -r /tmp/requirements.txt
142-
botocore==1.43.46 \
143-
--hash=sha256:59f2e1ac3cdc66d191cae91c0804bc41847ce817dc8147cf43eaada8f76a5533 \
144-
--hash=sha256:cb673891e623ae6e6a1bf24d94ef169504f3eb02584adb5d5bee2f6aae819b60
142+
botocore==1.43.47 \
143+
--hash=sha256:4d16559a3a1866fa7b9e651dd1422c1a033497e069f8a73cae5eebafe70ff39c \
144+
--hash=sha256:9e04d8da7f9cff8a911b14284829f78b74e1ce785444833199837decb5ecc17a
145145
# via
146146
# boto3
147147
# s3transfer

0 commit comments

Comments
 (0)