From f0ea7a505bc18721e7b2c9f923f8e531c8f06075 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 22 Jan 2021 15:25:22 +0800 Subject: [PATCH] style(editorconfig): add indent style for yaml --- .editorconfig | 2 +- .pre-commit-config.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index 42b21d8143..c2b3e16c7b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -38,6 +38,6 @@ indent_style = space indent_size = 4 max_line_length = 120 -[{*.sh,*.yml}] +[{*.sh,*.yml,*.yaml}] indent_style = space indent_size = 2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb6b1cee62..8f614af56d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,12 +13,12 @@ repos: # 3 - any directory named 'testdata' # 4 - IDF monitor test data exclude: &whitespace_excludes | - (?x)^( - .+\.(md|rst|map|bin)| - .+test.*\/.*expected.*| - .+\/testdata\/.+| - .+test_idf_monitor\/tests\/.+ - )$ + (?x)^( + .+\.(md|rst|map|bin)| + .+test.*\/.*expected.*| + .+\/testdata\/.+| + .+test_idf_monitor\/tests\/.+ + )$ - id: end-of-file-fixer exclude: *whitespace_excludes - id: check-executables-have-shebangs