diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py index 2ceadb1bfcd0afe1dcca13da2d5a5f49e782e9f1..9792274e0283659642c14146f3d011f3a6d2d739 100644 --- a/bob/devtools/scripts/ci.py +++ b/bob/devtools/scripts/ci.py @@ -1024,6 +1024,10 @@ def check(root): # we skip sphinx build and doctests as this is run by the ci later env = os.environ.copy() env["SKIP"] = "sphinx-build,sphinx-doctest" - run_cmdline([which("pre-commit"), "run", "--all-files"], env=env, cwd=root) + run_cmdline( + [which("pre-commit"), "run", "--all-files", "--show-diff-on-failure"], + env=env, + cwd=root, + ) else: logger.info(f"Cannot find file {path}. Skipping pre-commit checks...")