@@ -487,8 +487,7 @@ def rest(self, method: str, path: str, **kwargs: Any) -> Any:
487487 repo = state .repository (m .group (1 ), m .group (2 ))
488488 pr = state .pull_request (repo , GitHubNumber (int (m .group (3 ))))
489489 return [
490- {"user" : {"login" : r .user }, "state" : r .state }
491- for r in pr .reviews
490+ {"user" : {"login" : r .user }, "state" : r .state } for r in pr .reviews
492491 ]
493492
494493 # GET /repos/{owner}/{repo}/pulls/{number}/files
@@ -515,7 +514,9 @@ def rest(self, method: str, path: str, **kwargs: Any) -> Any:
515514 }
516515
517516 # GET /repos/{owner}/{repo}/commits/{ref}/check-runs
518- if m := re .match (r"^repos/([^/]+)/([^/]+)/commits/([^/]+)/check-runs$" , path ):
517+ if m := re .match (
518+ r"^repos/([^/]+)/([^/]+)/commits/([^/]+)/check-runs$" , path
519+ ):
519520 # For the fake endpoint, we need to find the PR by head SHA
520521 # and return its check runs
521522 state = self .state
@@ -543,7 +544,9 @@ def rest(self, method: str, path: str, **kwargs: Any) -> Any:
543544 return []
544545
545546 # GET /repos/{owner}/{repo}/contents/{path}
546- if m := re .match (r"^repos/([^/]+)/([^/]+)/contents/(.+?)(?:\?ref=(.+))?$" , path ):
547+ if m := re .match (
548+ r"^repos/([^/]+)/([^/]+)/contents/(.+?)(?:\?ref=(.+))?$" , path
549+ ):
547550 # Return a NotFoundError for the fake endpoint
548551 raise ghstack .github .NotFoundError ()
549552
0 commit comments