Skip to content

Commit cbe16c1

Browse files
committed
Fix formatting: list comprehension and import order
- Split list comprehension across lines in test_prelude.py - Sort imports alphabetically in approval_validation.py.test
1 parent c513d29 commit cbe16c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ghstack/test_prelude.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ def set_pr_check_runs(
452452
repo = github.state.repository("pytorch", "pytorch")
453453
pr = github.state.pull_request(repo, ghstack.github_fake.GitHubNumber(pr_number))
454454
pr.check_runs = [
455-
ghstack.github_fake.CheckRun(name=n, status=s, conclusion=c) for n, s, c in checks
455+
ghstack.github_fake.CheckRun(name=n, status=s, conclusion=c)
456+
for n, s, c in checks
456457
]
457458

458459

test/merge_rules/approval_validation.py.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ghstack.test_prelude import *
22

33
import ghstack.merge_rules
4-
from ghstack.github_fake import PullRequestReview, GitHubNumber
4+
from ghstack.github_fake import GitHubNumber, PullRequestReview
55

66
init_test()
77
commit("A")

0 commit comments

Comments
 (0)