MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / collect_paths

Function collect_paths

scripts/check_article_quality.py:392–401  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

390
391
392def collect_paths(args: argparse.Namespace) -> tuple[list[Path], bool]:
393 if args.paths:
394 return [Path(path) for path in args.paths], False
395 if args.all:
396 return all_article_files(), False
397 if args.staged:
398 return staged_files(), True
399 if args.base:
400 return changed_files(args.base, args.head), False
401 return staged_files(), True
402
403
404def check_files(args: argparse.Namespace) -> list[Failure]:

Callers 1

check_filesFunction · 0.85

Calls 3

all_article_filesFunction · 0.85
staged_filesFunction · 0.85
changed_filesFunction · 0.85

Tested by

no test coverage detected