From 203cc7a68c1f8ce26f5009dd64f307aa642273e9 Mon Sep 17 00:00:00 2001 From: Liam Bowen Date: Fri, 21 Oct 2022 14:57:42 -0400 Subject: [PATCH] fix(yaml): work around ruamel parser error This bug made it impossible to check all pnpm-lock.yaml files --- pre_commit_hooks/check_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit_hooks/check_yaml.py b/pre_commit_hooks/check_yaml.py index 250794e..12b54a9 100644 --- a/pre_commit_hooks/check_yaml.py +++ b/pre_commit_hooks/check_yaml.py @@ -8,7 +8,7 @@ from typing import Sequence import ruamel.yaml -yaml = ruamel.yaml.YAML(typ='safe') +yaml = ruamel.yaml.YAML(typ='safe', pure=True) def _exhaust(gen: Generator[str, None, None]) -> None: