Skip to content

Commit 00ec0d6

Browse files
ruff
1 parent d44d5ab commit 00ec0d6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

installation_and_upgrade/ibex_install_utils/install_tasks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,7 @@ def run_vhd_post_install(self) -> None:
422422
UpgradeInstrument.run_setup_log_rotation,
423423
"setup log rotation",
424424
),
425-
"developer_update": (UpgradeInstrument.run_developer_update,
426-
"install latest developer tools"),
425+
"developer_update": (UpgradeInstrument.run_developer_update, "install latest developer tools"),
427426
"create_vhds": (
428427
UpgradeInstrument.run_vhd_creation,
429428
"create a set of VHDS containing the latest IBEX release",
@@ -438,6 +437,5 @@ def run_vhd_post_install(self) -> None:
438437
UpgradeInstrument.run_vhd_post_install,
439438
"Run final task on system after VHD has been mounted locally",
440439
),
441-
"save_motor_params": (UpgradeInstrument.save_motor_params,
442-
"Save motor parameters to csv file"),
440+
"save_motor_params": (UpgradeInstrument.save_motor_params, "Save motor parameters to csv file"),
443441
}

installation_and_upgrade/ibex_install_utils/tasks/mysql_tasks.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ def truncate_database(self) -> None:
9494
try:
9595
mysql_bin_dir = self._get_mysql_dir()
9696

97-
sql_command = "truncate table msg_log.message;"\
98-
"truncate table archive.sample;truncate table alarm.pv"
97+
sql_command = (
98+
"truncate table msg_log.message;"
99+
"truncate table archive.sample;truncate table alarm.pv"
100+
)
99101

100102
RunProcess(
101103
MYSQL_FILES_DIR,
@@ -212,7 +214,7 @@ def temporarily_run_mysql(self, sql_password: str) -> None:
212214
log_command_args=False, # To make sure password doesn't appear in jenkins log.
213215
).run()
214216

215-
def _setup_database_users_and_tables(self, vhd_install:bool = True) -> None:
217+
def _setup_database_users_and_tables(self, vhd_install: bool = True) -> None:
216218
sql_password = self.prompt.prompt(
217219
"Enter the MySQL root password:",
218220
UserPrompt.ANY,
@@ -258,8 +260,7 @@ def _setup_mysql8_service(self) -> None:
258260
# Wait for initialize since admin runner can't wait for completion.
259261
# Maybe we can detect completion another way?
260262
admin_commands.add_command(
261-
mysqld, '--install MYSQL80 --datadir="{}"'.format(
262-
os.path.join(MYSQL_FILES_DIR, "data"))
263+
mysqld, '--install MYSQL80 --datadir="{}"'.format(os.path.join(MYSQL_FILES_DIR, "data"))
263264
)
264265

265266
admin_commands.add_command("sc", "start MYSQL80", expected_return_val=None)

0 commit comments

Comments
 (0)