From ca0d60898e19a465ebcd50231253d1c9f7e5a729 Mon Sep 17 00:00:00 2001 From: Aleksey Khoroshilov Date: Tue, 20 Dec 2022 18:13:11 +0700 Subject: [PATCH 1/2] Add .style.yapf. --- .style.yapf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .style.yapf diff --git a/.style.yapf b/.style.yapf new file mode 100644 index 000000000000..a7bffb495864 --- /dev/null +++ b/.style.yapf @@ -0,0 +1,9 @@ +[style] +based_on_style = pep8 + +# PEP-8 limits to 79 chars. Chromium uses 80 chars everywhere. +column_limit=80 + +# Workaround yapf dict formatting bug. +# See for details: https://github.com/google/yapf/issues/392 +allow_split_before_dict_value=False From 5dc732c2f565298420dd90325687b71bd8d40c9b Mon Sep 17 00:00:00 2001 From: Aleksey Khoroshilov Date: Tue, 20 Dec 2022 18:38:19 +0700 Subject: [PATCH 2/2] Add spaces. --- .style.yapf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.style.yapf b/.style.yapf index a7bffb495864..ed66caff9300 100644 --- a/.style.yapf +++ b/.style.yapf @@ -2,8 +2,8 @@ based_on_style = pep8 # PEP-8 limits to 79 chars. Chromium uses 80 chars everywhere. -column_limit=80 +column_limit = 80 # Workaround yapf dict formatting bug. # See for details: https://github.com/google/yapf/issues/392 -allow_split_before_dict_value=False +allow_split_before_dict_value = False