Skip to content

Commit 63a2eb5

Browse files
committed
Using pycharm auto-cleanup to format code
Using pycharm auto-cleanup to format cod
1 parent d32b5d0 commit 63a2eb5

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

automation_ide/automation_editor_ui/editor_main/main_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22
import sys
3+
from os import environ
34
from pathlib import Path
45
from typing import List, Dict, Type
56

6-
from os import environ
77
environ["LOCUST_SKIP_MONKEY_PATCH"] = "1"
88

99
from PySide6.QtCore import QTimer, QCoreApplication
@@ -21,13 +21,13 @@
2121
from je_load_density.gui.main_widget import LoadDensityWidget
2222
from je_auto_control.gui.main_widget import AutoControlGUIWidget
2323

24-
2524
EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = {
2625
"LoadDensity GUI": LoadDensityWidget,
2726
"APITestka GUI": APITestkaWidget,
2827
"AutoControl GUI": AutoControlGUIWidget,
2928
}
3029

30+
3131
class AutomationEditor(EditorMain):
3232

3333
def __init__(self, debug_mode: bool = False, show_system_tray_ray: bool = False):

automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def create_project() -> None:
130130
except ImportError as error:
131131
print(repr(error), file=sys.stderr)
132132

133+
133134
def add_api_testka_gui(ui_we_want_to_set: AutomationEditor) -> None:
134135
ui_we_want_to_set.tab_widget.addTab(
135-
APITestkaWidget(), "APITestka GUI"
136-
)
136+
APITestkaWidget(), "APITestka GUI"
137+
)

automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def set_autocontrol_menu(ui_we_want_to_set: AutomationEditor):
2727
:return: None
2828
"""
2929
ui_we_want_to_set.autocontrol_menu = ui_we_want_to_set.automation_menu.addMenu(
30-
language_wrapper.language_word_dict.get("autocontrol_menu_label"))
30+
language_wrapper.language_word_dict.get("autocontrol_menu_label"))
3131
ui_we_want_to_set.autocontrol_run_menu = ui_we_want_to_set.autocontrol_menu.addMenu(
3232
language_wrapper.language_word_dict.get("run_label"))
3333
# Run AutoControl Script

automation_ide/automation_editor_ui/menu/automation_menu/test_pioneer_menu/build_test_pioneer_menu.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

66
from PySide6.QtWidgets import QFileDialog, QMessageBox
77

8-
from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import init_and_start_test_pioneer_process
8+
from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import \
9+
init_and_start_test_pioneer_process
910

1011
if TYPE_CHECKING:
1112
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor
1213

1314
from PySide6.QtGui import QAction
1415
from je_editor import language_wrapper
15-
from test_pioneer import create_template_dir, execute_yaml
16+
from test_pioneer import create_template_dir
1617

1718

1819
def set_test_pioneer_menu(ui_we_want_to_set: AutomationEditor):

automation_ide/extend/process_executor/python_task_process_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def print_and_clear_queue(self):
160160
def read_program_output_from_process(self):
161161
while self.still_run_program:
162162
self.process: subprocess.Popen
163-
program_output_data = self.process.stdout.readline(self.program_buffer_size)\
163+
program_output_data = self.process.stdout.readline(self.program_buffer_size) \
164164
.decode("utf-8", "replace")
165165
if self.process:
166166
self.process.stdout.flush()
@@ -169,7 +169,7 @@ def read_program_output_from_process(self):
169169

170170
def read_program_error_output_from_process(self):
171171
while self.still_run_program:
172-
program_error_output_data = self.process.stderr.readline(self.program_buffer_size)\
172+
program_error_output_data = self.process.stderr.readline(self.program_buffer_size) \
173173
.decode("utf-8", "replace")
174174
if self.process:
175175
self.process.stderr.flush()

automation_ide/extend/process_executor/test_pioneer/test_pioneer_process_manager.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def print_and_clear_queue(self):
135135
def read_program_output_from_process(self):
136136
while self._still_run_program:
137137
self.process: subprocess.Popen
138-
program_output_data = self._process.stdout.readline(self._program_buffer_size)\
138+
program_output_data = self._process.stdout.readline(self._program_buffer_size) \
139139
.decode("utf-8", "replace")
140140
if self._process:
141141
self._process.stdout.flush()
@@ -144,7 +144,7 @@ def read_program_output_from_process(self):
144144

145145
def read_program_error_output_from_process(self):
146146
while self._still_run_program:
147-
program_error_output_data = self._process.stderr.readline(self._program_buffer_size)\
147+
program_error_output_data = self._process.stderr.readline(self._program_buffer_size) \
148148
.decode("utf-8", "replace")
149149
if self._process:
150150
self._process.stderr.flush()
@@ -176,8 +176,6 @@ def start_test_pioneer_process(self):
176176

177177

178178
def init_and_start_test_pioneer_process(ui_we_want_to_set: AutomationEditor, file_path: str):
179-
test_pioneer_process_manager = TestPioneerProcess(
180-
main_window=ui_we_want_to_set, executable_path=file_path)
181-
test_pioneer_process_manager.start_test_pioneer_process()
182-
183-
179+
test_pioneer_process_manager = TestPioneerProcess(
180+
main_window=ui_we_want_to_set, executable_path=file_path)
181+
test_pioneer_process_manager.start_test_pioneer_process()

automation_ide/utils/exception/exception_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434

3535
# XML
3636
cant_read_xml_error: str = "can't read XML"
37-
xml_type_error: str = "XML type error"
37+
xml_type_error: str = "XML type error"

0 commit comments

Comments
 (0)