From 8769cfcfd85e2137992e1e34df214936b1ed9425 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Thu, 5 Mar 2020 09:04:46 -0800 Subject: CI: don't show diff after pre-commit hooks It's noisy, messy output. It's not of much benefit anyway as users can run git diff locally if they really need to see a diff. They have to do work locally anyway since CI won't commit the fixes pre-commit makes. --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 280f11a36..16d1b7a2a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -47,7 +47,7 @@ jobs: pre-commit | "$(PythonVersion.pythonLocation)" path: $(PRE_COMMIT_HOME) - - script: pre-commit run --all-files --show-diff-on-failure + - script: pre-commit run --all-files displayName: 'Run pre-commit hooks' - script: BOT_API_KEY=foo BOT_SENTRY_DSN=blah BOT_TOKEN=bar WOLFRAM_API_KEY=baz REDDIT_CLIENT_ID=spam REDDIT_SECRET=ham coverage run -m xmlrunner -- cgit v1.2.3