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 Apr 1, 2024
1 parent 3d51f59 commit ad1d5d4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions papermill/abs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for working with Azure blob storage"""

import io
import re

Expand Down
1 change: 1 addition & 0 deletions papermill/adl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for working with Azure data lake storage"""

import re

from azure.datalake.store import core, lib
Expand Down
5 changes: 2 additions & 3 deletions papermill/engines.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Engines to perform different roles"""

import datetime
import sys
from functools import wraps
Expand Down Expand Up @@ -169,9 +170,7 @@ def autosave_cell(self):
# Autosave is taking too long, so exponentially back off.
self.autosave_cell_every *= 2
logger.warning(
"Autosave too slow: {:.2f} sec, over {}% limit. Backing off to {} sec".format(
save_elapsed, self.max_autosave_pct, self.autosave_cell_every
)
f"Autosave too slow: {save_elapsed:.2f} sec, over {self.max_autosave_pct}% limit. Backing off to {self.autosave_cell_every} sec"
)

@catch_nb_assignment
Expand Down
1 change: 1 addition & 0 deletions papermill/inspection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Deduce parameters of a notebook from the parameters cell."""

from pathlib import Path

import click
Expand Down
1 change: 1 addition & 0 deletions papermill/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sets up a logger"""

import logging

logger = logging.getLogger('papermill')
1 change: 1 addition & 0 deletions papermill/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models used by papermill."""

from collections import namedtuple

Parameter = namedtuple(
Expand Down

0 comments on commit ad1d5d4

Please sign in to comment.