From d27c31a389899b966ee1968313195cba77dd7ce0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 4 Aug 2016 00:55:07 +0300 Subject: [PATCH] Formatter: allow multiline lambdas --- .style.yapf | 3 ++- platformio/commands/ci.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.style.yapf b/.style.yapf index 0a658196..7bc85964 100644 --- a/.style.yapf +++ b/.style.yapf @@ -1,2 +1,3 @@ [style] -blank_line_before_nested_class_or_def = true \ No newline at end of file +blank_line_before_nested_class_or_def = true +allow_multiline_lambdas = true diff --git a/platformio/commands/ci.py b/platformio/commands/ci.py index 401b00ff..886c9506 100644 --- a/platformio/commands/ci.py +++ b/platformio/commands/ci.py @@ -121,7 +121,8 @@ def cli(ctx, # pylint: disable=R0913 if not keep_build_dir: rmtree( build_dir, - onerror=lambda action, name, exc: (chmod(name, stat.S_IWRITE), remove(name))) + onerror=lambda action, name, exc: (chmod(name, stat.S_IWRITE), + remove(name))) def _clean_dir(dirpath):