mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-08 00:09:15 -05:00
Add some missing no cover comments
This commit is contained in:
@@ -16,7 +16,7 @@ def install_environment(repo_cmd_runner, version='default'):
|
|||||||
|
|
||||||
def run_hook(repo_cmd_runner, hook, file_args):
|
def run_hook(repo_cmd_runner, hook, file_args):
|
||||||
grep_command = 'grep -H -n -P'
|
grep_command = 'grep -H -n -P'
|
||||||
if platform == 'darwin':
|
if platform == 'darwin': # pragma: no cover (osx)
|
||||||
grep_command = 'ggrep -H -n -P'
|
grep_command = 'ggrep -H -n -P'
|
||||||
|
|
||||||
# For PCRE the entry is the regular expression to match
|
# For PCRE the entry is the regular expression to match
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from pre_commit import five
|
|||||||
|
|
||||||
# TODO: smell: import side-effects
|
# TODO: smell: import side-effects
|
||||||
try:
|
try:
|
||||||
if not os.environ.get('TERM'):
|
if not os.environ.get('TERM'): # pragma: no cover (dumb terminal)
|
||||||
raise OSError('Cannot determine width without TERM')
|
raise OSError('Cannot determine width without TERM')
|
||||||
COLS = int(
|
COLS = int(
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
echo 'Fail'
|
echo 'Fail'
|
||||||
echo $@
|
echo $@
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user