MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _get_skips

Function _get_skips

pre_commit/commands/run.py:129–131  ·  view source on GitHub ↗
(environ: MutableMapping[str, str])

Source from the content-addressed store, hash-verified

127
128
129def _get_skips(environ: MutableMapping[str, str]) -> set[str]:
130 skips = environ.get('SKIP', '')
131 return {skip.strip() for skip in skips.split(',') if skip.strip()}
132
133
134SKIPPED = 'Skipped'

Callers 2

test_get_skipsFunction · 0.90
runFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1

test_get_skipsFunction · 0.72