Skip to content

Commit

Permalink
test: Fix indexError in pre-commit tests
Browse files Browse the repository at this point in the history
* Append hook instead of refering with index

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Feb 18, 2024
1 parent 7f300b5 commit a597680
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a597680

Please sign in to comment.