(p: Path)
| 333 | |
| 334 | |
| 335 | def supports_color() -> bool: |
| 336 | return sys.stdout.isatty() and os.environ.get("TERM", "") not in ("", "dumb") |
| 337 | |
| 338 | |
| 339 | def c(text: str, color: str) -> str: |
| 340 | return f"{color}{text}{C.END}" if supports_color() else text |
| 341 | |
| 342 | |
| 343 | def header(title: str) -> None: |
| 344 | print("\n" + c("═" * 62, C.DIM)) |
no outgoing calls
no test coverage detected