Skip to content

Commit d079cc3

Browse files
author
github-actions
committed
[github-actions] Apply auto-formatting using ruff
1 parent cf98fd4 commit d079cc3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tags_update/tests/test_verify.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ def test_wrong_april_tag():
6969

7070
def test_first_update_tag_not_renamed():
7171
with loader.load("specs/first_update_tag_not_renamed.yml", "start") as output:
72-
assert_output(output, GitAutograderStatus.UNSUCCESSFUL, [OLD_FIRST_UPDATE_TAG, MISSING_JANUARY_TAG])
72+
assert_output(
73+
output,
74+
GitAutograderStatus.UNSUCCESSFUL,
75+
[OLD_FIRST_UPDATE_TAG, MISSING_JANUARY_TAG],
76+
)

tags_update/verify.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def verify(exercise: GitAutograderExercise) -> GitAutograderOutput:
4545
main_branch_commits, "Add January duty roster"
4646
)
4747
if january_commit is None:
48-
raise exercise.wrong_answer(
49-
[MISSING_COMMIT_MESSAGE.format(message="January")]
50-
)
48+
raise exercise.wrong_answer([MISSING_COMMIT_MESSAGE.format(message="January")])
5149

5250
january_tag_commit = tags["january-update"].commit
5351
if january_tag_commit.hexsha != january_commit.hexsha:
@@ -61,9 +59,7 @@ def verify(exercise: GitAutograderExercise) -> GitAutograderOutput:
6159
main_branch_commits, "Update duty roster for April"
6260
)
6361
if april_commit is None:
64-
raise exercise.wrong_answer(
65-
[MISSING_COMMIT_MESSAGE.format(message="April")]
66-
)
62+
raise exercise.wrong_answer([MISSING_COMMIT_MESSAGE.format(message="April")])
6763

6864
april_tag_commit = tags["april-update"].commit
6965
if april_tag_commit.hexsha != april_commit.hexsha:

0 commit comments

Comments
 (0)