Skip to content

Commit 23eb534

Browse files
committed
adds dependabot compatible lockfile and config
1 parent 5aac1bf commit 23eb534

File tree

4 files changed

+3783
-4
lines changed

4 files changed

+3783
-4
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# # we do not want automatic PRs with dependency updates and dependency resolution for uv
4+
# # does not fully work
5+
# - package-ecosystem: uv
6+
# directory: "/"
7+
# schedule:
8+
# interval: daily
9+
10+
# use requirements.txt in tools/dependabot_lock synced with lockfile
11+
- package-ecosystem: pip
12+
directory: "tools/dependabot_lock"
13+
schedule:
14+
interval: daily
15+
# don't do PRs
16+
open-pull-requests-limit: 0

.github/workflows/test_transpiled_rules.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
# Add any new files that might have been generated
4242
git add -A
4343
44-
# Check if there are any differences
45-
if ! git diff --staged --quiet; then
44+
# Check if there are any differences in the ai folder
45+
if ! git diff --staged --quiet -- ai/; then
4646
echo "❌ Transpiled rules are out of date!"
4747
echo ""
4848
echo "The following files have changes:"
49-
git diff --staged --name-only
49+
git diff --staged --name-only -- ai/
5050
echo ""
5151
echo "Please run 'make transpile-rules' locally and commit the changes."
5252
exit 1
@@ -55,4 +55,4 @@ jobs:
5555
fi
5656
5757
- name: Run dlt ai command test
58-
run: uv run pytest tests/test_dlt_ai.py
58+
run: uv run pytest tests/test_dlt_ai.py

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ help:
1111

1212
dev:
1313
uv sync --reinstall-package dlt --upgrade-package dlt
14+
# export lockfile in widely recognized format
15+
uv export --format requirements-txt --all-extras --all-groups --no-editable --locked -q --output-file tools/dependabot_lock/requirements.txt
1416

1517
lint-dlt-init:
1618
uv run ./check-requirements.py

0 commit comments

Comments
 (0)