diff --git a/setup.cfg b/setup.cfg index 37a3947..847a636 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,3 +42,9 @@ extra_files = scripts = shyaml + +[flake8] +ignore = E265,W391,E262,E126,E127 +max-line-length = 80 +max-complexity = 15 + diff --git a/shyaml b/shyaml index a03fbf6..674bd17 100755 --- a/shyaml +++ b/shyaml @@ -454,7 +454,7 @@ def main(args): ## pylint: disable=too-many-branches termination = "\0" if action.endswith("-0") else "\n" if action == "get-value": - print(dump(value), end='') + print(dump(value).encode('utf-8'), end='') elif action in ("get-values", "get-values-0"): if isinstance(value, dict): for k, v in value.iteritems():