Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Oct 23, 2024
1 parent d410aa7 commit 0973a62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testing/end-to-end/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let
'';
genReport = pkgs.writers.writePython3 "gen-report"
{ libraries = with pkgs.python3Packages; [ colorama ];
flakeIgnore = [ "E731" "E501" ];
flakeIgnore = [ "E731" "E501" "E741" ];
}
(readFile ./gen-report.py);
in
Expand Down
2 changes: 2 additions & 0 deletions testing/end-to-end/gen-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def format_markdown(full_report):
bold_f = lambda s: f"**{s}**"
ok_f = lambda s: f"{s} :heavy_check_mark:"
fail_f = lambda s: f"{s} :x:"

def log_f(logs):
lines = html.escape(logs).splitlines()
lines = [l if l.strip() else "<br/>" for l in lines]
Expand All @@ -77,6 +78,7 @@ def log_f(logs):
{log_str}
</pre>
</details>""", 4 * ' ')

return format_gen(full_report, bold_f, ok_f, fail_f, log_f)


Expand Down

0 comments on commit 0973a62

Please sign in to comment.