Skip to content

Commit b4026a2

Browse files
authored
🚀 RELEASE: v0.4.1 (#59)
1 parent 5da799a commit b4026a2

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ repos:
1818
- id: flake8
1919

2020
- repo: https://github.com/psf/black
21-
rev: stable
21+
rev: 20.8b1
2222
hooks:
2323
- id: black

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.4.1 - 2020-08-28
4+
5+
⬆️ UPGRADE: nbclient v0.5
6+
37
## 0.4.0 - 2020-08-19
48

59
- 👌 IMPROVE: Add `allow_errors` execution option to `JupyterExecutorBasic.run_and_cache`

jupyter_cache/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: never import anything here, in order to maintain CLI speed
2-
__version__ = "0.4.0"
2+
__version__ = "0.4.1"
33

44

55
def get_cache(path, cache_cls=None):

jupyter_cache/cache/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ def _validate_nb_bundle(self, nb_bundle: NbBundleIn):
183183
# TODO assets
184184

185185
def _prepare_nb_for_cache(self, nb: nbf.NotebookNode, deepcopy=False):
186-
"""Prepare in-place, we remove non-code cells.
187-
"""
186+
"""Prepare in-place, we remove non-code cells."""
188187
if deepcopy:
189188
nb = copy.deepcopy(nb)
190189
nb.cells = [cell for cell in nb.cells if cell.cell_type == "code"]

jupyter_cache/executors/basic.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,19 @@ def execute(self, input_iterator, timeout=30, allow_errors=False, in_temp=True):
152152

153153
def execute_single(self, nb_bundle, uri, cwd, timeout, allow_errors, asset_files):
154154
result = single_nb_execution(
155-
nb_bundle.nb, cwd=cwd, timeout=timeout, allow_errors=allow_errors,
155+
nb_bundle.nb,
156+
cwd=cwd,
157+
timeout=timeout,
158+
allow_errors=allow_errors,
156159
)
157160
if result.err:
158161
self.logger.error("Execution Failed: {}".format(uri))
159162
return _create_bundle(
160-
nb_bundle, cwd, asset_files, result.time, result.exc_string,
163+
nb_bundle,
164+
cwd,
165+
asset_files,
166+
result.time,
167+
result.exc_string,
161168
)
162169

163170
self.logger.info("Execution Succeeded: {}".format(uri))

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete`
1212

1313
[tox]
14-
envlist = py{36,37,38},docs
14+
envlist = py{36,37,38}
1515

1616
[testenv:py{36,37,38}]
1717
recreate = false
1818
extras = cli,testing
1919
commands = pytest {posargs}
2020

21-
[testenv:docs]
21+
[testenv:docs-{clean,update}]
2222
recreate = false
2323
extras = rtd
2424
whitelist_externals = rm
2525
commands =
26-
rm -rf docs/_build
26+
clean: rm -rf docs/_build
2727
sphinx-build -nW --keep-going -b html docs/ docs/_build/html

0 commit comments

Comments
 (0)