Skip to content

Commit 3472f2b

Browse files
committed
Add some missing no cover comments
1 parent 7d72271 commit 3472f2b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

pre_commit/languages/pcre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def install_environment(repo_cmd_runner, version='default'):
1616

1717
def run_hook(repo_cmd_runner, hook, file_args):
1818
grep_command = 'grep -H -n -P'
19-
if platform == 'darwin':
19+
if platform == 'darwin': # pragma: no cover (osx)
2020
grep_command = 'ggrep -H -n -P'
2121

2222
# For PCRE the entry is the regular expression to match

pre_commit/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# TODO: smell: import side-effects
1212
try:
13-
if not os.environ.get('TERM'):
13+
if not os.environ.get('TERM'): # pragma: no cover (dumb terminal)
1414
raise OSError('Cannot determine width without TERM')
1515
COLS = int(
1616
subprocess.Popen(
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env bash
2-
3-
42
echo 'Fail'
53
echo $@
64
exit 1

0 commit comments

Comments
 (0)