From 3bdd0b0802213574bbbaf7fc839373e16a2aebc0 Mon Sep 17 00:00:00 2001 From: seroy Date: Tue, 17 Aug 2021 23:10:10 +0300 Subject: [PATCH] Fix "while scanning a plain scalar found unexpected ':'" --- 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 7453f6f..1dcb65a 100644 --- a/pre_commit_hooks/check_yaml.py +++ b/pre_commit_hooks/check_yaml.py @@ -7,7 +7,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: