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
13 changes: 13 additions & 0 deletions qsl.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[qsl]
repo = "InteractiveBrokersPlatform"
tier = "runtime-platform"
ring = 3
allow_legacy = false

[qsl.requires]
quant_platform_kit = "0063af3b4a974650ea58a7d3f26dd1b94f65d3e8"
us_equity_strategies = "46887bc3f5454d5b59623b1f5efb7c65912c6b8b"
hk_equity_strategies = "61993bf261aeccf64b5a75428b9405f4e1d1d682"
Comment on lines +8 to +10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Guard QSL dependency pins against drift

These new qsl.requires SHAs duplicate the install pins in pyproject.toml, but the blocking CI guard only runs scripts/check_qpk_pin_consistency.py, whose PINNED_FILE_GLOBS at line 22 omits qsl.toml (the workflow invokes that guard at .github/workflows/ci.yml:113). When the normal dependency bump updates pyproject.toml/uv.lock, this metadata can silently stay on the old bundle and compatibility automation will consume stale pins; please add this file to the guard or make the test compare it to the actual dependency pins.

Useful? React with 👍 / 👎.


[qsl.compat]
bundle = "2026.07.0"
19 changes: 19 additions & 0 deletions tests/test_qsl_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from __future__ import annotations

from pathlib import Path
import tomllib


def test_qsl_metadata_has_runtime_platform_fields() -> None:
qsl_path = Path(__file__).resolve().parents[1] / "qsl.toml"
with qsl_path.open("rb") as f:
qsl = tomllib.load(f)["qsl"]

assert qsl["tier"] == "runtime-platform"
assert qsl["ring"] == 3
assert qsl.get("repo") == "InteractiveBrokersPlatform"
assert qsl["compat"]["bundle"] == "2026.07.0"
requires = qsl["requires"]
assert "quant_platform_kit" in requires
assert "us_equity_strategies" in requires
assert "hk_equity_strategies" in requires
Loading