Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 22, 2021
1 parent 98c28b4 commit c934b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit/languages/docker.py
Expand Up @@ -28,7 +28,7 @@ def _is_in_docker() -> bool:
def _get_docker_path(path: str) -> str:
if not _is_in_docker():
return path
with open('/proc/1/cgroup', 'r') as f:
with open('/proc/1/cgroup') as f:
container_id = os.path.basename(f.readlines()[0]).strip()

_, out, _ = cmd_output_b('docker', 'inspect', container_id)
Expand Down

0 comments on commit c934b4e

Please sign in to comment.