Skip to content

Commit 9c76d22

Browse files
committed
IMPROVEMENT: more codacy linting fixes
1 parent 817620c commit 9c76d22

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

MethodicConfigurator/frontend_tkinter_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class ProgressWindow:
211211
This class is responsible for creating a progress window that displays the progress of
212212
a task. It includes a progress bar and a label to display the progress message.
213213
"""
214-
def __init__(self, parent, title, message: str="", width: int=300, height: int=80): # pylint: disable=too-many-arguments
214+
def __init__(self, parent, title, message: str="", width: int=300, height: int=80): # pylint: disable=too-many-arguments
215215
self.parent = parent
216216
self.message = message
217217
self.progress_window = None

MethodicConfigurator/frontend_tkinter_parameter_editor_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ def __create_flightcontroller_value(self, fc_parameters, param_name, param_defau
204204
if param_name in fc_parameters:
205205
value_str = format(fc_parameters[param_name], '.6f').rstrip('0').rstrip('.')
206206
if param_default is not None and is_within_tolerance(fc_parameters[param_name], param_default.value):
207-
# If it matches, set the background color to light blue
207+
# If it matches, set the background color to light blue
208208
flightcontroller_value = ttk.Label(self.view_port, text=value_str,
209209
background="light blue")
210210
else:
211-
# Otherwise, set the background color to the default color
211+
# Otherwise, set the background color to the default color
212212
flightcontroller_value = ttk.Label(self.view_port, text=value_str)
213213
else:
214214
flightcontroller_value = ttk.Label(self.view_port, text="N/A", background="orange")

param_reorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def update_configuration_steps_json_file_contents(steps, file_content, new_name,
102102
curr_filename = re_search.group(1)
103103
if "old_filenames" in line:
104104
if curr_filename in steps and "old_filenames" in steps[curr_filename]:
105-
# WARNING!!! old_filenames can only used once, so we remove it after using it
105+
# WARNING!!! old_filenames can only used once, so we remove it after using it
106106
old_filenames = str(steps[curr_filename].pop("old_filenames")).replace("\'", "\"")
107107
new_file_content += f' "old_filenames": {old_filenames}'
108108
if line.endswith(",\n"):

unittests/backend_filesystem_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ def test_copy_template_files_to_new_vehicle_dir(self, mock_copy2, mock_copytree,
112112
mock_copy2.assert_called_once_with('template_dir/file1', 'new_vehicle_dir/file1')
113113
mock_copytree.assert_called_once_with('template_dir/dir1', 'new_vehicle_dir/dir1')
114114

115+
115116
if __name__ == '__main__':
116117
unittest.main()

0 commit comments

Comments
 (0)