mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
Merge branch 'some_minor_tweaks'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
coverage
|
||||
flake8
|
||||
mock
|
||||
pylint
|
||||
pylint<1.4
|
||||
pytest
|
||||
|
||||
3
tox.ini
3
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user