Merge branch 'some_minor_tweaks'

This commit is contained in:
Anthony Sottile
2015-01-04 16:02:14 -08:00
4 changed files with 4 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
- id: check-yaml
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- id: flake8
- repo: git@github.com:pre-commit/pre-commit
sha: 86c99c6b870a261d2aff0b4cdb36995764edce1b

View File

@@ -79,10 +79,6 @@ def get_run_function(filenames_help, validate_strategy, exception_cls):
validate_strategy(filename)
except exception_cls as e:
print(e.args[0])
# If there was an inner exception, print the stringified
# version of that.
if len(e.args) > 1:
print(str(e.args[1]))
retval = 1
return retval
return run

View File

@@ -3,5 +3,5 @@
coverage
flake8
mock
pylint
pylint<1.4
pytest

View File

@@ -9,7 +9,8 @@ deps = -rrequirements-dev.txt
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --fail-under 93
# TODO: when dropping py26, change to 100
coverage report --show-missing --fail-under 99
flake8 {[tox]project} testing tests setup.py
# pylint {[tox]project} testing tests setup.py