From 9ad6fb22d50c0be602906c4b0ec832be7fd9d364 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sun, 21 Oct 2018 17:04:55 -0500 Subject: [PATCH] Have Black check also show the diff If Black detecs the need to format a file it will show the relevant diff --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6a378befb1..730f7fd5ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: script: - pyflakes pyhf - pytest -r sx --ignore tests/benchmarks/ --ignore tests/test_notebooks.py - - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then black --check --verbose .; fi + - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then black --check --diff --verbose .; fi after_success: coveralls # always test (on both 'push' and 'pr' builds in Travis)