mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
Merge branch 'some_minor_tweaks'
This commit is contained in:
commit
645838cb51
4 changed files with 4 additions and 6 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
|
- id: requirements-txt-fixer
|
||||||
- id: flake8
|
- id: flake8
|
||||||
- repo: git@github.com:pre-commit/pre-commit
|
- repo: git@github.com:pre-commit/pre-commit
|
||||||
sha: 86c99c6b870a261d2aff0b4cdb36995764edce1b
|
sha: 86c99c6b870a261d2aff0b4cdb36995764edce1b
|
||||||
|
|
|
||||||
|
|
@ -79,10 +79,6 @@ def get_run_function(filenames_help, validate_strategy, exception_cls):
|
||||||
validate_strategy(filename)
|
validate_strategy(filename)
|
||||||
except exception_cls as e:
|
except exception_cls as e:
|
||||||
print(e.args[0])
|
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
|
retval = 1
|
||||||
return retval
|
return retval
|
||||||
return run
|
return run
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
coverage
|
coverage
|
||||||
flake8
|
flake8
|
||||||
mock
|
mock
|
||||||
pylint
|
pylint<1.4
|
||||||
pytest
|
pytest
|
||||||
|
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -9,7 +9,8 @@ deps = -rrequirements-dev.txt
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run -m pytest {posargs:tests}
|
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
|
flake8 {[tox]project} testing tests setup.py
|
||||||
# pylint {[tox]project} testing tests setup.py
|
# pylint {[tox]project} testing tests setup.py
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue