MCPcopy Create free account
hub / github.com/pytest-dev/pytest / main

Function main

extra/get_issues.py:33–44  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

31
32
33def main(args):
34 cachefile = Path(args.cache)
35 if not cachefile.exists() or args.refresh:
36 issues = get_issues()
37 cachefile.write_text(json.dumps(issues), "utf-8")
38 else:
39 issues = json.loads(cachefile.read_text("utf-8"))
40
41 open_issues = [x for x in issues if x["state"] == "open"]
42
43 open_issues.sort(key=lambda x: x["number"])
44 report(open_issues)
45
46
47def _get_kind(issue):

Callers 1

get_issues.pyFile · 0.70

Calls 3

get_issuesFunction · 0.85
reportFunction · 0.85
dumpsMethod · 0.80

Tested by

no test coverage detected