Skip to content
Merged
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: 5 additions & 1 deletion sc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
from pathlib import Path

# ---------- optional deps ---------- #
PYPERCLIP_WARNING: str | None = None
try:
import pyperclip # type: ignore
except ImportError:
pyperclip = None
print(
PYPERCLIP_WARNING = (
"Note: Clipboard functionality ('pyperclip') is not available. Install it with 'uv add pyperclip'."
)

Expand Down Expand Up @@ -208,6 +209,9 @@ def main() -> None:
)
ns = ap.parse_args()

if PYPERCLIP_WARNING and not ns.write:
print(PYPERCLIP_WARNING)

if not ns.tests:
EXCLUDED_DIRS.add("tests")

Expand Down