mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Add more 'no cover windows' comments
This commit is contained in:
parent
177164b5a2
commit
4f9d0397b5
6 changed files with 24 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ def _hook_paths(hook_type):
|
|||
|
||||
|
||||
def is_our_script(filename):
|
||||
if not os.path.exists(filename):
|
||||
if not os.path.exists(filename): # pragma: windows no cover (symlink)
|
||||
return False
|
||||
with io.open(filename) as f:
|
||||
contents = f.read()
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ def install_environment(
|
|||
os.mkdir(directory)
|
||||
|
||||
|
||||
def docker_cmd():
|
||||
def docker_cmd(): # pragma: windows no cover
|
||||
return (
|
||||
'docker', 'run',
|
||||
'--rm',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue