From 0c821424cdd2fb9cc473744c6eac3b83721dbe64 Mon Sep 17 00:00:00 2001 From: arpit551 Date: Tue, 24 Mar 2020 23:36:24 +0530 Subject: [PATCH] lint: Run whitespace linter against .yml files. Lint now checks for .yml files with whitespace_rules. --- tools/lint | 2 +- tools/linter_lib/custom_check.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lint b/tools/lint index 68751cb17e..09404fe416 100755 --- a/tools/lint +++ b/tools/lint @@ -47,7 +47,7 @@ def run(): linter_config = LinterConfig(args) by_lang = linter_config.list_files(groups={ - 'backend': ['py', 'sh', 'pp', 'json', 'md', 'txt', 'text', 'yaml', 'rst'], + 'backend': ['py', 'sh', 'pp', 'json', 'md', 'txt', 'text', 'yaml', 'rst', 'yml'], 'frontend': ['js', 'ts', 'css', 'scss', 'hbs', 'html', 'lock'], }, exclude=EXCLUDED_FILES) diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 797098c4cd..86123a00e2 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -838,7 +838,7 @@ help_markdown_rules = RuleList( ) txt_rules = RuleList( - langs=['txt', 'text', 'yaml', 'rst'], + langs=['txt', 'text', 'yaml', 'rst', 'yml'], rules=whitespace_rules, ) non_py_rules = [