236 dirs = [d for d in VCR_PACKAGES if d in all_affected]
237 else:
238▶ raise ValueError(f"Unknown job: {job}")
239
240 return [
· · ·
254
255 Raises:
256▶ ValueError: If a single argument looks like JSON but is not a string array.
257 """
258 if len(args) != 1:
· · ·
265 try:
266 parsed = json.loads(value)
267▶ except json.JSONDecodeError as e:
268 msg = "Expected changed files JSON to be a list of strings."
269 raise ValueError(msg) from e
· · ·
269▶ raise ValueError(msg) from e
270
271 if not isinstance(parsed, list) or not all(
· · ·
273 ):
274 msg = "Expected changed files JSON to be a list of strings."
275▶ raise ValueError(msg)
276 return parsed
277
+ 1 more matches in this file