(name: str, default: bool = False)
| 20 | |
| 21 | |
| 22 | def env_flag(name: str, default: bool = False) -> bool: |
| 23 | raw = os.environ.get(name) |
| 24 | if raw is None: |
| 25 | return default |
| 26 | return raw.strip().lower() not in {"0", "false", "off", "no", ""} |
| 27 | |
| 28 | |
| 29 | def roles_path(*, project_root: Optional[Path] = None) -> Path: |
no test coverage detected