Skip to content

Commit 3d8b184

Browse files
authored
fix(build): satisfy sure alpha lint gate
Format the alpha tests for the central Trunk gate and align isort with Black so the alpha publish workflow can pass before registry publication.
1 parent 4497fc4 commit 3d8b184

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ markers = [
77
"extended_integration: opt-in extended runtime and configuration matrix tests",
88
]
99
addopts = ["-ra", "--strict-markers"]
10+
11+
[tool.isort]
12+
profile = "black"

tests/integration/test_container_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from tests.helpers import (
1111
REPO_ROOT,
1212
container_path_exists,
13-
docker_exec,
1413
docker_available,
14+
docker_exec,
1515
docker_volume,
1616
ensure_pytest_image,
1717
reserve_host_port,

tests/test_alpha_lane_assets.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from pathlib import Path
4-
from xml.etree import ElementTree
4+
from xml.etree import ElementTree # nosec B405
55

66
ROOT = Path(__file__).resolve().parents[1]
77

@@ -35,8 +35,13 @@ def test_alpha_template_has_separate_identity_and_storage() -> None:
3535
assert ( # nosec B101
3636
alpha.findtext("Repository") == "jsonbored/sure-aio-alpha:latest-alpha"
3737
)
38-
assert alpha.findtext("Registry") == "https://hub.docker.com/r/jsonbored/sure-aio-alpha" # nosec B101
39-
assert alpha.findtext("TemplateURL", "").endswith("/sure-aio-alpha.xml") # nosec B101
38+
assert ( # nosec B101
39+
alpha.findtext("Registry")
40+
== "https://hub.docker.com/r/jsonbored/sure-aio-alpha"
41+
)
42+
assert alpha.findtext("TemplateURL", "").endswith( # nosec B101
43+
"/sure-aio-alpha.xml"
44+
)
4045
assert stable.findtext("Beta") is None # nosec B101
4146
assert alpha.findtext("Beta") == "True" # nosec B101
4247
assert _host_paths(stable).isdisjoint(_host_paths(alpha)) # nosec B101
@@ -64,14 +69,15 @@ def test_alpha_template_exposes_upstream_alpha_webauthn_controls() -> None:
6469
assert "WEBAUTHN_RP_ID" not in stable_targets # nosec B101
6570
assert "WEBAUTHN_ALLOWED_ORIGINS" not in stable_targets # nosec B101
6671
assert alpha_targets["WEBAUTHN_RP_ID"].get("Display") == "advanced" # nosec B101
67-
assert alpha_targets["WEBAUTHN_ALLOWED_ORIGINS"].get("Display") == "advanced" # nosec B101
72+
assert ( # nosec B101
73+
alpha_targets["WEBAUTHN_ALLOWED_ORIGINS"].get("Display") == "advanced"
74+
)
6875

6976

7077
def test_alpha_overlay_is_documented_and_copied() -> None:
7178
dockerfile = (ROOT / "Dockerfile.alpha").read_text()
7279
initializer = (
73-
ROOT
74-
/ "rootfs-alpha/rails/config/initializers/sure_aio_alpha_import_limits.rb"
80+
ROOT / "rootfs-alpha/rails/config/initializers/sure_aio_alpha_import_limits.rb"
7581
)
7682
ledger = (ROOT / "docs/alpha-lane.md").read_text()
7783

0 commit comments

Comments
 (0)