Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 22, 2024
1 parent 3330f1f commit 197ac2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ghstack/github_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def get_github_repo_info(


def parse_pull_request(
pull_request: str,
*,
sh: Optional[ghstack.shell.Shell] = None,
remote_name: Optional[str] = None,
pull_request: str,
*,
sh: Optional[ghstack.shell.Shell] = None,
remote_name: Optional[str] = None,
) -> GitHubPullRequestParams:
m = RE_PR_URL.match(pull_request)
if not m:
Expand Down
4 changes: 3 additions & 1 deletion ghstack/land.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def main(
# Furthermore, the parent commits of PR are ignored: we always
# take the canonical version of the patch from any given pr

params = ghstack.github_utils.parse_pull_request(pull_request, sh=sh, remote_name=remote_name)
params = ghstack.github_utils.parse_pull_request(
pull_request, sh=sh, remote_name=remote_name
)
default_branch = ghstack.github_utils.get_github_repo_info(
github=github,
sh=sh,
Expand Down

0 comments on commit 197ac2d

Please sign in to comment.