Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Dec 21, 2023
1 parent 4dc4209 commit 0204cf9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions dmoj/contrib/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ def get_interactor_args_format_string(cls):
@classmethod
@DefaultContribModule.catch_internal_error
def parse_return_code(
cls, proc, executor, point_value, time_limit, memory_limit, feedback, extended_feedback, name, stderr,
treat_checker_points_as_percentage=None, **kwargs
cls,
proc,
executor,
point_value,
time_limit,
memory_limit,
feedback,
extended_feedback,
name,
stderr,
treat_checker_points_as_percentage=None,
**kwargs
):
if proc.returncode == cls.AC:
return CheckerResult(True, point_value, feedback=feedback, extended_feedback=extended_feedback)
Expand All @@ -45,8 +55,7 @@ def parse_return_code(

if not 0 <= points <= point_value:
raise InternalError(
'Invalid partial points: %f, must be between [%f; %f]' %
(points, 0, point_value)
'Invalid partial points: %f, must be between [%f; %f]' % (points, 0, point_value)
)

return CheckerResult(True, points, feedback=feedback, extended_feedback=extended_feedback)
Expand Down

0 comments on commit 0204cf9

Please sign in to comment.