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.
1 parent e6e26c3 commit e7924b5Copy full SHA for e7924b5
pre_commit_hooks/check_yaml.py
@@ -3,6 +3,7 @@
3
import argparse
4
import collections
5
import sys
6
+import io
7
from typing import Any
8
from typing import Generator
9
from typing import Optional
@@ -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