Files
computer-playbook/utils/github/variant/limits.py
T
kevinveenbirkenbachandClaude Opus 5 6c816e893e refactor(github): group the variant modules and drop the blind-except
variant_bundle_limits.py next to variant_bundles.py formed the prefix group
'variant', which the structure lint reads as a folder in disguise. It stayed
green locally because that lint asks git ls-files: the new file was untracked
through every quality run and only became visible once committed. CI saw it
immediately - the sole failure of run 30675284663.

Both move to utils/github/variant/ as bundles.py and limits.py, and the test
mirrors along.

The BLE001 per-file ignore is removed rather than repointed. parse_size raises
humanfriendly.InvalidSize for a malformed string and TypeError only for a
non-string, and the value reaching it is always str - so the catch-all was
never needed. Measured, not assumed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 02:46:36 +02:00

13 lines
441 B
Python

"""Default bundle limits for the CI deploy-matrix discovery.
Kept apart from :mod:`utils.github.variant.bundles`, which reaches yaml and
humanfriendly at import time: the env handlers that seed these defaults are
imported by the .env generator on the bare bootstrap python, where no
third-party module exists. This module must stay stdlib-only.
"""
from __future__ import annotations
DEFAULT_BUNDLE_SIZE = 3
DEFAULT_MAX_STORAGE = "350GB"