From cef89cf69f1ec735a5b87d1c94cf69c3276444bf Mon Sep 17 00:00:00 2001 From: Joel Baranick Date: Mon, 21 Dec 2020 09:13:08 -0800 Subject: [PATCH] Reduce line length --- yamllint/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yamllint/cli.py b/yamllint/cli.py index 3bb35c8..5845e9a 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -198,6 +198,7 @@ def run(argv=None): locale.setlocale(locale.LC_ALL, conf.locale) max_level = 0 + no_warnings = args.no_warnings or conf.no_warnings for file in find_files_recursively(args.files, conf): filepath = file[2:] if file.startswith('./') else file @@ -208,7 +209,7 @@ def run(argv=None): print(e, file=sys.stderr) sys.exit(-1) prob_level = show_problems(problems, file, args_format=args.format, - no_warn=args.no_warnings or conf.no_warnings) + no_warn=no_warnings) max_level = max(max_level, prob_level) # read yaml from stdin @@ -219,7 +220,7 @@ def run(argv=None): print(e, file=sys.stderr) sys.exit(-1) prob_level = show_problems(problems, 'stdin', args_format=args.format, - no_warn=args.no_warnings or conf.no_warnings) + no_warn=no_warnings) max_level = max(max_level, prob_level) if max_level == PROBLEM_LEVELS['error']: