From 184462819c11282b82fe7298714756fc847c0251 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:54:56 +0000 Subject: [PATCH] fix --- nbqa/__main__.py | 2 +- tests/tools/test_pylint_works.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nbqa/__main__.py b/nbqa/__main__.py index bcafbcbc..087eb1d3 100644 --- a/nbqa/__main__.py +++ b/nbqa/__main__.py @@ -672,7 +672,7 @@ def _save_markdown_sources( SAVE_SOURCES = {False: _save_code_sources, True: _save_markdown_sources} -def _post_process_notebooks( # pylint: disable=R0913 +def _post_process_notebooks( # pylint: disable=R0913,R0917 saved_sources: SavedSources, nb_to_py_mapping: Mapping[str, TemporaryFile], mutated: bool, diff --git a/tests/tools/test_pylint_works.py b/tests/tools/test_pylint_works.py index 2c0d5748..9aec6448 100644 --- a/tests/tools/test_pylint_works.py +++ b/tests/tools/test_pylint_works.py @@ -54,5 +54,5 @@ def test_pylint_works(capsys: "CaptureFixture") -> None: horizontal_bar = "-----------------------------------" assert ( out.replace("\r\n", "\n").split(horizontal_bar)[0] - == expected_out.split(horizontal_bar)[0] + == expected_out.split(horizontal_bar, maxsplit=1)[0] )