@@ -589,8 +589,8 @@ def _get_version_info_from_named_regex_match(
589
589
build_match = named_matches .group ("build" )
590
590
log_message = (
591
591
f"Found { package_name } version "
592
- f"major:{ major_match } minor:{ minor_match } " # noqa: E231
593
- f"patch:{ patch_match } build:{ build_match } " # noqa: E231
592
+ f"major:{ major_match } minor:{ minor_match } "
593
+ f"patch:{ patch_match } build:{ build_match } "
594
594
)
595
595
self ._node .log .debug (log_message )
596
596
return VersionInfo (major , minor , patch , build = build_match )
@@ -705,7 +705,7 @@ def __resolve_package_name(self, package: Union[str, Tool, Type[Tool]]) -> str:
705
705
elif isinstance (package , Tool ):
706
706
package_name = package .package_name
707
707
else :
708
- assert isinstance (package , type ), f"actual:{ type (package )} " # noqa: E231
708
+ assert isinstance (package , type ), f"actual:{ type (package )} "
709
709
# Create a temp object, it doesn't query.
710
710
# So they can be queried together.
711
711
tool = package .create (self ._node )
@@ -922,9 +922,7 @@ def add_azure_core_repo(
922
922
code_name = self .information .codename
923
923
repo_name = AzureCoreRepo .AzureCoreDebian
924
924
925
- repo_url = (
926
- f"http://packages.microsoft.com/repos/{ repo_name .value } /" # noqa: E231
927
- )
925
+ repo_url = f"http://packages.microsoft.com/repos/{ repo_name .value } /"
928
926
self .add_repository (
929
927
repo = (f"deb [arch={ arch_name } ] { repo_url } { code_name } main" ),
930
928
keys_location = keys ,
@@ -1146,7 +1144,7 @@ def _package_exists(self, package: str) -> bool:
1146
1144
# vim deinstall
1147
1145
# vim-common install
1148
1146
# auoms hold
1149
- package_pattern = re .compile (f"{ package } ([ \t ]+)(install|hold)" ) # noqa: E201
1147
+ package_pattern = re .compile (f"{ package } ([ \t ]+)(install|hold)" )
1150
1148
if len (list (filter (package_pattern .match , result .stdout .splitlines ()))) == 1 :
1151
1149
return True
1152
1150
return False
@@ -1695,7 +1693,7 @@ def install_epel(self) -> None:
1695
1693
).is_greater_than_or_equal_to (7 )
1696
1694
epel_release_rpm_name = f"epel-release-latest-{ major } .noarch.rpm"
1697
1695
self .install_packages (
1698
- f"https://dl.fedoraproject.org/pub/epel/{ epel_release_rpm_name } " # noqa: E231
1696
+ f"https://dl.fedoraproject.org/pub/epel/{ epel_release_rpm_name } "
1699
1697
)
1700
1698
1701
1699
# replace $releasever to 8 for 8.x
0 commit comments