Skip to content

Commit 93aee34

Browse files
authored
lint
1 parent cff59a9 commit 93aee34

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

tests/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestsBase(unittest.TestCase):
1515

1616
@classmethod
1717
def fopen(cls, f, mode="r", encoding="utf-8"):
18-
return open(os.path.join(cls._get_files_path(), f), mode, encoding=encoding) # noqa
18+
return open(os.path.join(cls._get_files_path(), f), mode, encoding=encoding)
1919

2020
@classmethod
2121
def _get_files_path(cls):

tests/test_sign.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def sign_stdin(nb):
220220
env = os.environ.copy()
221221
env["JUPYTER_DATA_DIR"] = self.data_dir
222222
p = Popen(
223-
[sys.executable, "-m", "nbformat.sign", "--log-level=0"], # noqa
223+
[sys.executable, "-m", "nbformat.sign", "--log-level=0"],
224224
stdin=PIPE,
225225
stdout=PIPE,
226226
env=env,

tests/v3/formattest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def open_utf8(fname, mode):
14-
return open(fname, mode=mode, encoding="utf-8") # noqa
14+
return open(fname, mode=mode, encoding="utf-8")
1515

1616

1717
class NBFormatTest:

tests/v3/test_nbpy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TestPy(formattest.NBFormatTest, TestCase):
1212
nb0_ref = nb0_py
1313
ext = "py"
1414
mod = nbpy
15-
ignored_keys = ["collapsed", "outputs", "prompt_number", "metadata"] # noqa
15+
ignored_keys = ["collapsed", "outputs", "prompt_number", "metadata"]
1616

1717
def assertSubset(self, da, db):
1818
"""assert that da is a subset of db, ignoring self.ignored_keys.

tests/v4/formattest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def open_utf8(fname, mode):
14-
return open(fname, mode=mode, encoding="utf-8") # noqa
14+
return open(fname, mode=mode, encoding="utf-8")
1515

1616

1717
class NBFormatTest:

tests/v4/test_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_base_version_matches_latest(self):
120120
f"nbformat.v{nbformat}.{nbformat_minor}.schema.json",
121121
),
122122
encoding="utf-8",
123-
) as schema_file: # noqa
123+
) as schema_file:
124124
ver_schema = json.load(schema_file)
125125
assert latest_schema == ver_schema
126126

0 commit comments

Comments
 (0)