diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4689406..c477d24f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pre_commit/clientlib/validate_base.py b/pre_commit/clientlib/validate_base.py index 1017f3a2..707bdde7 100644 --- a/pre_commit/clientlib/validate_base.py +++ b/pre_commit/clientlib/validate_base.py @@ -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 diff --git a/requirements-dev.txt b/requirements-dev.txt index 0d448cab..27aa358b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,5 +3,5 @@ coverage flake8 mock -pylint +pylint<1.4 pytest diff --git a/tox.ini b/tox.ini index 87082d9e..a8c58834 100644 --- a/tox.ini +++ b/tox.ini @@ -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