Skip to content

Commit 09ab8c1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5c65163 commit 09ab8c1

File tree

10 files changed

+12
-18
lines changed

10 files changed

+12
-18
lines changed

convert2rhel/actions/conversion/set_efi_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ def run(self):
252252

253253
if not grub.is_efi():
254254
logger.info(
255-
"Unable to collect data about UEFI on a BIOS system, did not perform UEFI bootloader "
256-
"entry replacement."
255+
"Unable to collect data about UEFI on a BIOS system, did not perform UEFI bootloader entry replacement."
257256
)
258257
return
259258

convert2rhel/actions/post_conversion/hostmetering.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def run(self):
9090
level="WARNING",
9191
id="CONFIGURE_HOST_METERING_FAILURE",
9292
title="Failed to enable and start host metering service.",
93-
description="The host metering service failed to start"
94-
" successfully and won't be able to keep track.",
93+
description="The host metering service failed to start successfully and won't be able to keep track.",
9594
diagnosis="Command {command} failed with {error_message}".format(
9695
command=command, error_message=error_message
9796
),

convert2rhel/actions/post_conversion/modified_rpm_files_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def run(self):
7777
level="INFO",
7878
id="FOUND_MODIFIED_RPM_FILES",
7979
title="Modified rpm files from before and after the conversion were found.",
80-
description="Comparison of modified rpm files from before and after " "the conversion: \n{}".format(
80+
description="Comparison of modified rpm files from before and after the conversion: \n{}".format(
8181
modified_rpm_files_diff
8282
),
8383
)

convert2rhel/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ def _register_options(self):
145145
self._shared_options_parser.add_argument(
146146
"--els",
147147
action="store_true",
148-
help="Explicitly recognize the system as els, utilizing els repos."
149-
" This option is meant for el7 systems.",
148+
help="Explicitly recognize the system as els, utilizing els repos. This option is meant for el7 systems.",
150149
)
151150
self._shared_options_parser.add_argument(
152151
"--enablerepo",

convert2rhel/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,5 @@ def write_temporary_repofile(contents):
239239
raise exceptions.CriticalError(
240240
id_="STORE_REPOFILE_FAILED",
241241
title="Failed to store a repository file",
242-
description="Failed to write a repository file contents to {}.\n" "Reason: {}".format(f.name, str(err)),
242+
description="Failed to write a repository file contents to {}.\nReason: {}".format(f.name, str(err)),
243243
)

convert2rhel/unit_tests/actions/post_conversion/update_grub_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ def test_update_grub_error(update_grub_instance, monkeypatch, get_partition_erro
244244
level="ERROR",
245245
id="FAILED_TO_IDENTIFY_GRUB2_BLOCK_DEVICE",
246246
title="Failed to identify GRUB2 block device",
247-
description="The block device could not be identified, please look at the diagnosis " "for more information.",
247+
description="The block device could not be identified, please look at the diagnosis for more information.",
248248
diagnosis=diagnosis,
249249
)

convert2rhel/unit_tests/actions/pre_ponr_changes/kernel_modules_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_ensure_compatibility_of_kmods(
162162
),
163163
(
164164
HOST_MODULES_STUB_BAD,
165-
"kernel-core-0:4.18.0-240.10.1.el8_3.x86_64\n" "kernel-core-0:4.19.0-240.10.1.el8_3.i486\n",
165+
"kernel-core-0:4.18.0-240.10.1.el8_3.x86_64\nkernel-core-0:4.19.0-240.10.1.el8_3.i486\n",
166166
("", 0),
167167
"CANNOT_COMPARE_PACKAGE_VERSIONS",
168168
"ERROR",

convert2rhel/unit_tests/cli_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ def test_serverurl_with_no_rhsm_credentials(self, caplog, monkeypatch):
143143
cli.CLI()
144144

145145
message = (
146-
"Ignoring the --serverurl option. It has no effect when no credentials to"
147-
" subscribe the system were given."
146+
"Ignoring the --serverurl option. It has no effect when no credentials to subscribe the system were given."
148147
)
149148
assert message in caplog.text
150149

convert2rhel/unit_tests/subscription_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,7 @@ def test_registration_succeeds_but_dbus_returns_noreply(self, monkeypatch, mocke
802802
utils,
803803
"run_subprocess",
804804
RunSubprocessMocked(
805-
return_string=(
806-
"system identity: 1234-56-78-9abc\n" "name: abc-123\n" "org name: Test\n" "org ID: 12345678910\n"
807-
)
805+
return_string=("system identity: 1234-56-78-9abc\nname: abc-123\norg name: Test\norg ID: 12345678910\n")
808806
),
809807
)
810808

tests/integration/test_helpers/satellite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def get_satellite_curl_command(self):
3030
return self._sat_reg_commands.get(self.key)
3131

3232
def _curl_the_satellite_script(self, curl_command):
33-
assert (
34-
self.shell(f"{curl_command} -o {self._sat_script_location}", silent=True).returncode == 0
35-
), "Failed to curl the satellite script to the machine."
33+
assert self.shell(f"{curl_command} -o {self._sat_script_location}", silent=True).returncode == 0, (
34+
"Failed to curl the satellite script to the machine."
35+
)
3636

3737
# [danmyway] This is just a mitigation of rhn-client-tools pkg obsoleting subscription-manager during upgrade
3838
# TODO remove when https://github.com/theforeman/foreman/pull/10280 gets merged and or foreman 3.12 is out

0 commit comments

Comments
 (0)