mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
add pragma: win32 no cover
This commit is contained in:
parent
dff7d60255
commit
9d4fe3a00b
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ def install_environment(
|
|||
os.mkdir(directory)
|
||||
|
||||
|
||||
def _docker_is_rootless() -> bool:
|
||||
def _docker_is_rootless() -> bool: # pragma: win32 no cover
|
||||
returncode, stdout, stderr = cmd_output(
|
||||
'docker', 'system', 'info',
|
||||
)
|
||||
|
|
@ -93,7 +93,7 @@ def _docker_is_rootless() -> bool:
|
|||
|
||||
|
||||
@functools.lru_cache(maxsize=1)
|
||||
def docker_is_rootless() -> bool:
|
||||
def docker_is_rootless() -> bool: # pragma: win32 no cover
|
||||
return _docker_is_rootless()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue