Skip to content

Commit

Permalink
Have Black check also show the diff
Browse files Browse the repository at this point in the history
If Black detecs the need to format a file it will show the relevant diff
  • Loading branch information
matthewfeickert committed Oct 21, 2018
1 parent ca07273 commit 9ad6fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ad6fb2

Please sign in to comment.