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