We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6e26c3 + fc9fb8b commit f677478Copy full SHA for f677478
pre_commit_hooks/check_yaml.py
@@ -2,6 +2,7 @@
2
3
import argparse
4
import collections
5
+import io
6
import sys
7
from typing import Any
8
from typing import Generator
@@ -58,7 +59,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
58
59
retval = 0
60
for filename in args.filenames:
61
try:
- with open(filename) as f:
62
+ with io.open(filename, encoding='UTF-8') as f:
63
load_fn(f)
64
except ruamel.yaml.YAMLError as exc:
65
print(exc)
0 commit comments