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 29, 2024
1 parent 627341c commit e8522f7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions jupyter_cache/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
API access to the cache should use this interface,
with no assumptions about the backend storage/retrieval mechanisms.
"""

from abc import ABC, abstractmethod
import io
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions jupyter_cache/cli/commands/cmd_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The main `jcache` click group."""

import click

from jupyter_cache.cli import options
Expand Down
1 change: 1 addition & 0 deletions jupyter_cache/entry_points.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for dealing with entry points."""

from typing import Optional, Set

# TODO importlib.metadata was introduced into the standard library in python 3.8
Expand Down
14 changes: 8 additions & 6 deletions jupyter_cache/executors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ def create_cache_bundle(
project_nb.nb,
project_nb.uri,
# TODO retrieve assets that have changed file mtime?
artifacts=NbArtifacts(
[p for p in Path(execdir).glob("**/*") if p not in asset_files],
execdir,
)
if (execdir is not None and asset_files is not None)
else None,
artifacts=(
NbArtifacts(
[p for p in Path(execdir).glob("**/*") if p not in asset_files],
execdir,
)
if (execdir is not None and asset_files is not None)
else None
),
data={"execution_seconds": exec_time},
traceback=exec_tb,
)
1 change: 1 addition & 0 deletions jupyter_cache/readers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for handling different functions to read "notebook-like" files."""

from typing import Any, Callable, Dict, Set

import nbformat as nbf
Expand Down

0 comments on commit e8522f7

Please sign in to comment.