From 050ee4427e5756ca3dd5fa82423b09257873b0ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 11:21:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nbconvert/nbconvertapp.py | 4 +--- nbconvert/tests/test_nbconvertapp.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nbconvert/nbconvertapp.py b/nbconvert/nbconvertapp.py index 1ef4954bf..d56bb68b6 100755 --- a/nbconvert/nbconvertapp.py +++ b/nbconvert/nbconvertapp.py @@ -420,9 +420,7 @@ def _notebook_filename_to_name(self, notebook_filename): """ basename = os.path.basename(notebook_filename) notebook_name = basename[: basename.rfind(".")] - notebook_name = self.output_base.format( - notebook_name=notebook_name - ) + notebook_name = self.output_base.format(notebook_name=notebook_name) return notebook_name diff --git a/nbconvert/tests/test_nbconvertapp.py b/nbconvert/tests/test_nbconvertapp.py index d2b502372..45deb10fa 100644 --- a/nbconvert/tests/test_nbconvertapp.py +++ b/nbconvert/tests/test_nbconvertapp.py @@ -654,7 +654,6 @@ def test_output_base(self): for nbn in notebook_names: assert os.path.isfile(f"{nbn}.md") - # Test single output with static output name nbname = notebook_names[0] with self.create_temp_cwd([nbname + ".ipynb"]): @@ -682,4 +681,4 @@ def test_same_filename_different_dir(self): self.copy_files_to(["notebook1.ipynb"], temp_wd + "/dir2") self.nbconvert("dir1/notebook1.ipynb dir2/notebook1.ipynb --to markdown") assert os.path.isfile("dir1/notebook1.md") - assert os.path.isfile("dir2/notebook1.md") \ No newline at end of file + assert os.path.isfile("dir2/notebook1.md")