From d40cc0f34b8594fd90a7d089c8ec79e31e027b64 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Tue, 11 Mar 2025 14:32:33 +0800 Subject: [PATCH] fix lint errors --- community/test/api/upload/command.py | 4 +++- lib/chatmark/form.py | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/community/test/api/upload/command.py b/community/test/api/upload/command.py index b5aa69d..658b87a 100755 --- a/community/test/api/upload/command.py +++ b/community/test/api/upload/command.py @@ -8,6 +8,7 @@ import requests ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(ROOT_DIR) +# noqa: I001 from api.utils import ( # noqa: E402 OPENAPI_URL, PROJECT_ID, @@ -15,8 +16,9 @@ from api.utils import ( # noqa: E402 VERSION_URL, get_path_op_id, session, -) # noqa: E402 +) +# noqa: E402 from lib.chatmark.step import Step # noqa: E402 diff --git a/lib/chatmark/form.py b/lib/chatmark/form.py index 48cedc4..facbf62 100644 --- a/lib/chatmark/form.py +++ b/lib/chatmark/form.py @@ -22,9 +22,9 @@ class Form: components: components in the form, can be widgets (except Button) or strings title: title of the form """ - assert any(isinstance(c, Button) for c in components) is False, ( - "Button is not allowed in Form" - ) + assert ( + any(isinstance(c, Button) for c in components) is False + ), "Button is not allowed in Form" self._components = components self._title = title