utils.py
This file
The walk stopped after 200 commits: lines older than 5a8a043 point at it.
📝 Update release notesgithub-actionsbefore adoption5a8a043
lines 1–33why, one step back1import sys2from os import getenv34import pytest56try:7 import shellingham8 from shellingham import ShellDetectionFailure910 shell = shellingham.detect_shell()[0]11except ImportError: # pragma: no cover12 shellingham = None13 shell = None14except ShellDetectionFailure: # pragma: no cover15 shell = None161718needs_py310 = pytest.mark.skipif(19 sys.version_info < (3, 10), reason="requires python3.10+"20)2122needs_linux = pytest.mark.skipif(23 not sys.platform.startswith("linux"), reason="Test requires Linux"24)2526needs_bash = pytest.mark.skipif(27 not shellingham or not shell or "bash" not in shell, reason="Test requires Bash"28)2930requires_completion_permission = pytest.mark.skipif(31 not getenv("_TYPER_RUN_INSTALL_COMPLETION_TESTS", False),32 reason="Test requires permission to run completion installation tests",33)