Skip to content

Commit

Permalink
fix(linting): ruff format to fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dyga01 committed Nov 5, 2024
1 parent f96137f commit 33c5d93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gatorgrade/output/check_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
self.diagnostic = diagnostic
self.path = path
self.run_command = ""
self.hint = "" # Store the hint as an instance attribute
self.hint = "" # Store the hint as an instance attribute

def display_result(self, show_diagnostic: bool = False) -> str:
"""Print check's passed or failed status, description, and, optionally, diagnostic message.
Expand Down
8 changes: 4 additions & 4 deletions gatorgrade/output/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ def run_checks(
index_of_hint = check.gg_args.index("--hint")
hint = check.gg_args[index_of_hint + 1]
# Remove the hint from gg_args before passing to GatorGrader
check.gg_args = check.gg_args[:index_of_hint] + check.gg_args[index_of_hint + 2:]
check.gg_args = (
check.gg_args[:index_of_hint] + check.gg_args[index_of_hint + 2 :]
)
result = _run_gg_check(check)
result.hint = hint # Store the hint in the CheckResult object
# check to see if there was a command in the
Expand Down Expand Up @@ -364,9 +366,7 @@ def run_checks(
)
# display a hint set by the instructor for specific failed checks
if result.hint != "":
rich.print(
f"[blue] → Hint: [green]{result.hint}\n"
)
rich.print(f"[blue] → Hint: [green]{result.hint}\n")
# determine how many of the checks passed and then
# compute the total percentage of checks passed
passed_count = len(results) - len(failed_results)
Expand Down

0 comments on commit 33c5d93

Please sign in to comment.