diff --git a/tests/external/pre_commit/test_pre_commit_5_reformat_markdown.py b/tests/external/pre_commit/test_pre_commit_5_reformat_markdown.py index d52c4865..f596504e 100644 --- a/tests/external/pre_commit/test_pre_commit_5_reformat_markdown.py +++ b/tests/external/pre_commit/test_pre_commit_5_reformat_markdown.py @@ -42,9 +42,9 @@ def test_pre_commit_hook_sync_reformat_code_and_markdown( jupytext_pre_commit_config["repos"][0]["hooks"][0]["additional_dependencies"] = [ "nbconvert==5.0.8" ] - jupytext_pre_commit_config["repos"][0]["hooks"][1] = jupytext_pre_commit_config[ - "repos" - ][0]["hooks"][0] + jupytext_pre_commit_config["repos"][0]["hooks"].append( + jupytext_pre_commit_config["repos"][0]["hooks"][0] + ) jupytext_pre_commit_config["repos"][0]["hooks"][1]["args"] = [ "--sync", "--pipe",