Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add --show-diff-on-failure to pre-commit invocation
This is helpful for those that do not run the hooks locally
  • Loading branch information
asottile authored Dec 10, 2017
commit 9191a2d02cf5ab7da558be16fd91c75ecbe2e137
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extras = lint
description = run static analysis and style check using flake8
commands = python -m flake8 --show-source tox setup.py {posargs}
python -m flake8 --show-source doc tests {posargs}
pre-commit run --all-files
pre-commit run --all-files --show-diff-on-failure
python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'


Expand Down