Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2024
1 parent f56fbfd commit 385be4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions papermill/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ def __init__(self, nb, output_path=None, log_output=False, progress_bar=True, au
if isinstance(progress_bar, bool):
self.pbar = tqdm(total=len(self.nb.cells), unit="cell", desc="Executing")
elif isinstance(progress_bar, dict):
_progress_bar = { "unit": "cell", "desc": "Executing" }
_progress_bar = {"unit": "cell", "desc": "Executing"}
_progress_bar.update(progress_bar)
self.pbar = tqdm(total=len(self.nb.cells), **_progress_bar)

Check warning on line 117 in papermill/engines.py

View check run for this annotation

Codecov / codecov/patch

papermill/engines.py#L114-L117

Added lines #L114 - L117 were not covered by tests
else:
raise TypeError(f"progress_bar must be instance of bool or dict, but actual type '{type(progress_bar)}'.")
raise TypeError(

Check warning on line 119 in papermill/engines.py

View check run for this annotation

Codecov / codecov/patch

papermill/engines.py#L119

Added line #L119 was not covered by tests
f"progress_bar must be instance of bool or dict, but actual type '{type(progress_bar)}'."
)

def now(self):
"""Helper to return current UTC time"""
Expand Down

0 comments on commit 385be4e

Please sign in to comment.