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
6 changes: 3 additions & 3 deletions scripts/check_deliberate_break.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
r"\b(assert|expect\(|pytest\.raises\(|assert\.)\b",
)
DEFAULT_TIMEOUT_SECONDS = 120
PYTEST_RUNTIME_VERSION = "6.0.3"
PYTEST_RUNTIME_DEPENDENCIES = (f"pyyaml=={PYTEST_RUNTIME_VERSION}",)
PYYAML_VERSION = "6.0.3"
PYTEST_RUNTIME_DEPENDENCIES = (f"pyyaml=={PYYAML_VERSION}",)
Comment thread
stranske marked this conversation as resolved.


@dataclass(frozen=True)
Expand Down Expand Up @@ -145,7 +145,7 @@ def _ensure_pytest_runtime_deps() -> None:
installed_version = metadata.version("PyYAML")
except metadata.PackageNotFoundError:
installed_version = None
if installed_version != PYTEST_RUNTIME_VERSION:
if installed_version != PYYAML_VERSION:
subprocess.run(
[
sys.executable,
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/test_check_deliberate_break.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def test_runtime_dependency_installer_accepts_exact_locked_pyyaml(monkeypatch) -
monkeypatch.setattr(
deliberate_break.metadata,
"version",
lambda _name: deliberate_break.PYTEST_RUNTIME_VERSION,
lambda _name: deliberate_break.PYYAML_VERSION,
)
monkeypatch.setattr(
deliberate_break.subprocess,
Expand Down
2 changes: 1 addition & 1 deletion tests/workflows/test_sync_manifest_delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_prepare_checkout_includes_manifest_owned_github_roots() -> None:


def test_consumer_gitattributes_preserves_windows_launcher_crlf() -> None:
"""The template-owned git config must retain native Windows line endings."""
"""The template-owned attributes must retain native Windows line endings."""
consumer_gitattributes = (
REPO_ROOT / "templates" / "consumer-repo" / ".gitattributes"
).read_text(encoding="utf-8")
Expand Down
4 changes: 2 additions & 2 deletions tools/evaluate_model_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ def evaluate_benchmark(payload: dict[str, Any], policy: dict[str, Any]) -> dict[
floor = raw_overrides.get(category, minimum_per_category)
if type(floor) is not int:
raise ValueError(
"minimum_cases_per_category_overrides values must be integers "
"approval_stage.minimum_cases_per_category_overrides values must be integers "
f"(got {floor!r} for {category!r})"
)
if floor < 1:
raise ValueError(
"minimum_cases_per_category_overrides values must be >= 1 "
"approval_stage.minimum_cases_per_category_overrides values must be >= 1 "
f"(got {floor} for {category!r}); every required category must be represented"
Comment thread
stranske marked this conversation as resolved.
)
category_floors[category] = floor
Expand Down
Loading