code: def test_pre_commit_local_config(
      tmpdir, cwd_tmpdir, tmp_repo, python_notebook, capsys
  ):
      tmpdir.join("jupytext.toml").write_text(
          """notebook_metadata_filter = "-all"
  cell_metadata_filter = "-all"
  formats = "ipynb,py:percent"
  """,
          encoding="utf-8",
      )
  
      write(python_notebook, str(tmpdir.join("test.ipynb")))
  
      # create the paired file
      jupytext(["--sync", "test.ipynb"])
  
      print("--------- test.ipynb ---------")
      print(tmpdir.join("test.ipynb").read_text("utf-8"))
      print("--------- test.py ---------")
      print(tmpdir.join("test.py").read_text("utf-8"))
  
      tmp_repo.git.add(".")
  
      capsys.readouterr()
      exit_code = jupytext(
          [
              "--pre-commit-mode",
              "--sync",
              "test.ipynb",
              "--show-changes",
          ]
      )
  
      out, err = capsys.readouterr()
      assert not err, err
      assert "updating test" not in out.lower(), out
      assert exit_code == 0, out
  
file_path: jupytext/tests/external/pre_commit/test_pre_commit_mode.py
imports: import os
  import time
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  from jupytext import read, write
  from jupytext.cli import get_timestamp, git_timestamp, is_untracked, jupytext
label_desc: Use image node_id 7 for calling a global function with example usage: test_pre_commit_local_config(tmpdir, cwd_tmpdir, tmp_repo, python_notebook, capsys) without return types