MCPcopy
hub / github.com/pytest-dev/pytest / main

Function main

extra/get_issues.py:37–48  ·  extra/get_issues.py::main
(args)

Source from the content-addressed store, hash-verified

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

Callers 1

get_issues.pyFile · 0.70

Calls 6

get_issuesFunction · 0.85
reportFunction · 0.85
write_textMethod · 0.80
dumpsMethod · 0.80
read_textMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected