Skip to content

Commit b7a94b0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c4c9280 commit b7a94b0

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

Diff for: jupyter_cache/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
API access to the cache should use this interface,
44
with no assumptions about the backend storage/retrieval mechanisms.
55
"""
6+
67
from abc import ABC, abstractmethod
78
import io
89
from pathlib import Path

Diff for: jupyter_cache/cli/commands/cmd_main.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The main `jcache` click group."""
2+
23
import click
34

45
from jupyter_cache.cli import options

Diff for: jupyter_cache/entry_points.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for dealing with entry points."""
2+
23
from typing import Optional, Set
34

45
# TODO importlib.metadata was introduced into the standard library in python 3.8

Diff for: jupyter_cache/executors/utils.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ def create_cache_bundle(
9494
project_nb.nb,
9595
project_nb.uri,
9696
# TODO retrieve assets that have changed file mtime?
97-
artifacts=NbArtifacts(
98-
[p for p in Path(execdir).glob("**/*") if p not in asset_files],
99-
execdir,
100-
)
101-
if (execdir is not None and asset_files is not None)
102-
else None,
97+
artifacts=(
98+
NbArtifacts(
99+
[p for p in Path(execdir).glob("**/*") if p not in asset_files],
100+
execdir,
101+
)
102+
if (execdir is not None and asset_files is not None)
103+
else None
104+
),
103105
data={"execution_seconds": exec_time},
104106
traceback=exec_tb,
105107
)

Diff for: jupyter_cache/readers.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for handling different functions to read "notebook-like" files."""
2+
23
from typing import Any, Callable, Dict, Set
34

45
import nbformat as nbf

0 commit comments

Comments
 (0)