Skip to content

Commit 2e339d4

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

15 files changed

+16
-1
lines changed

pytest_notebook/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""A pytest plugin for testing Jupyter Notebooks."""
2+
23
__version__ = "0.10.0"

pytest_notebook/diffing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Diffing of notebooks."""
2+
23
import copy
34
import operator
45
import re

pytest_notebook/execution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Execution of notebooks."""
2+
23
from contextlib import nullcontext
34
import copy
45
import json

pytest_notebook/ipy_magic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
then ``%pytest`` and ``%%pytest`` can be accessed.
55
66
"""
7+
78
# TODO post solution to stackoverflow:
89
# https://stackoverflow.com/questions/41304311/running-pytest-test-functions-inside-a-jupyter-notebook
910
import os
@@ -20,7 +21,7 @@
2021

2122

2223
def parse_cell_content(
23-
cell: Union[str, None]
24+
cell: Union[str, None],
2425
) -> Tuple[List[str], List[str], List[str]]:
2526
"""Parse the cell contents.
2627

pytest_notebook/nb_regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Jupyter Notebook Regression Test Class."""
2+
23
import copy
34
import logging
45
import os

pytest_notebook/notebook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for working with notebook."""
2+
23
import copy
34
from functools import lru_cache
45

pytest_notebook/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html
1111
1212
"""
13+
1314
import os
1415
import shlex
1516

pytest_notebook/post_processors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
All functions should take (notebook, resources) as input,
44
and output a (new notebook, resources).
55
"""
6+
67
import copy
78
import functools
89
import logging

pytest_notebook/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility functions."""
2+
23
import os
34
import textwrap
45
import warnings

tests/test_nb_regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for ``NBRegressionFixture``."""
2+
23
import os
34

45
import pytest

tests/test_notebook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for pytest_notebook.notebook."""
2+
23
from pytest_notebook.notebook import (
34
META_KEY,
45
MetadataConfig,

tests/test_plugin_collector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the plugin collection and direct invocation of notebooks."""
2+
23
import os
34

45
PATH = os.path.dirname(os.path.realpath(__file__))

tests/test_plugin_fixture.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the ``nb_regression`` plugin fixture."""
2+
23
import os
34

45
import attr

tests/test_postprocessors/test_beautifulsoup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for beautifulsoup post-processor."""
2+
23
from pytest_notebook.notebook import create_notebook, mapping_to_dict, prepare_cell
34
from pytest_notebook.post_processors import beautifulsoup
45

tests/test_postprocessors/test_blacken_code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for blacken_code post-processor."""
2+
23
import textwrap
34

45
from pytest_notebook.notebook import create_notebook, mapping_to_dict, prepare_cell

0 commit comments

Comments
 (0)