From 443417b0f49ee15a49665dcb62507210f3cd86d9 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 16 Sep 2021 21:56:09 +0300 Subject: [PATCH] PyLint fix --- .pylintrc | 1 + platformio/commands/home/rpc/handlers/project.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index 4a7f6601..3943bac6 100644 --- a/.pylintrc +++ b/.pylintrc @@ -16,6 +16,7 @@ disable= useless-import-alias, bad-option-value, consider-using-dict-items, + consider-using-f-string, ; PY2 Compat super-with-arguments, diff --git a/platformio/commands/home/rpc/handlers/project.py b/platformio/commands/home/rpc/handlers/project.py index 2263beb1..4c48a5d9 100644 --- a/platformio/commands/home/rpc/handlers/project.py +++ b/platformio/commands/home/rpc/handlers/project.py @@ -265,7 +265,8 @@ class ProjectRPC: fp.write(main_content.strip()) return project_dir - async def import_arduino(self, board, use_arduino_libs, arduino_project_dir): + @staticmethod + async def import_arduino(board, use_arduino_libs, arduino_project_dir): board = str(board) # don't import PIO Project if is_platformio_project(arduino_project_dir):