Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
salotz committed Mar 6, 2024
1 parent 6692cce commit 7f93c87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pytest_checklist/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def pytest_runtestloop(session) -> None: # nochecklist:
console.print(f"Minimum number of pointers per target: {target_min_pass}")

if session.config.option.checklist_report:

report_padding = make_report(
target_reports,
show_ignored=session.config.option.checklist_report_ignored,
Expand Down
8 changes: 5 additions & 3 deletions src/pytest_checklist/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@


def make_report(
target_reports: list[TargetReport], show_ignored: bool = False, show_passing: bool = False,
target_reports: list[TargetReport],
show_ignored: bool = False,
show_passing: bool = False,
) -> Padding: # nochecklist: Just renders a display

def report_line(target_report: TargetReport):
Expand Down Expand Up @@ -46,8 +48,8 @@ def report_line(target_report: TargetReport):
report_line(target_report)
for target_report in target_reports
if not (
(not show_ignored and target_report.result.target.ignored)
or (not show_passing and target_report.passes)
(not show_ignored and target_report.result.target.ignored)
or (not show_passing and target_report.passes)
)
]
)
Expand Down

0 comments on commit 7f93c87

Please sign in to comment.