Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ updates:
interval: daily
allow:
- dependency-name: hotdata
- dependency-name: hotdata-runtime
- dependency-name: hotdata-framework
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "hotdata-ibis"
version = "0.1.5"
description = "Ibis backend for Hotdata federated SQL API (depends on the hotdata SDK only; not hotdata-runtime)"
description = "Ibis backend for Hotdata federated SQL API (depends on the hotdata SDK only; not hotdata-framework)"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Apache-2.0" }
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-workflow.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Generate publish.yml for a package. Usage: publish-workflow.sh hotdata-runtime
# Generate publish.yml for a package. Usage: publish-workflow.sh hotdata-framework
set -euo pipefail
pkg="${1:?package name}"
cat <<EOF
Expand Down
14 changes: 7 additions & 7 deletions tests/test_architecture_guardrails.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
REPO_ROOT = Path(__file__).resolve().parents[1]


def test_pyproject_dependencies_do_not_include_hotdata_runtime() -> None:
def test_pyproject_dependencies_do_not_include_hotdata_framework() -> None:
pyproject_text = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
match = re.search(r"(?ms)^dependencies\s*=\s*\[(.*?)\]", pyproject_text)
assert match is not None
dependencies_block = match.group(1)
assert "hotdata-runtime" not in dependencies_block
assert "hotdata_runtime" not in dependencies_block
assert "hotdata-framework" not in dependencies_block
assert "hotdata_framework" not in dependencies_block


def test_source_tree_does_not_import_hotdata_runtime() -> None:
def test_source_tree_does_not_import_hotdata_framework() -> None:
violations: list[str] = []
import_patterns = (
re.compile(r"(?m)^\s*from\s+hotdata_runtime(?:\.|\s+import)"),
re.compile(r"(?m)^\s*import\s+hotdata_runtime(?:\s|$|,)"),
re.compile(r"(?m)^\s*from\s+hotdata_framework(?:\.|\s+import)"),
re.compile(r"(?m)^\s*import\s+hotdata_framework(?:\s|$|,)"),
)

for folder in ("src", "tests", "examples"):
Expand All @@ -29,6 +29,6 @@ def test_source_tree_does_not_import_hotdata_runtime() -> None:
violations.append(str(path.relative_to(REPO_ROOT)))

assert not violations, (
"hotdata-ibis must remain independent from hotdata-runtime; "
"hotdata-ibis must remain independent from hotdata-framework; "
f"found forbidden imports in: {', '.join(violations)}"
)
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading