Skip to content

Commit

Permalink
Ignore flake8 complaints for a few specific lines in the base provider
Browse files Browse the repository at this point in the history
Although Black is configured at 79 chars line length, it keeps a few
lines to 80, 81 or 82 chars. Flake8 will complain about this, but we can
ignore these.
  • Loading branch information
pieqq committed Apr 11, 2024
1 parent 5951fab commit 7edd537
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions providers/base/bin/gpu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def main():
if b"glxgears" not in app:
continue
GlxWindows[i].id = str(
re.match(b"^(0x\w+)", app).group(0), "utf-8"
) # noqa: W605
re.match(b"^(0x\w+)", app).group(0), "utf-8" # noqa: W605
)
break
if hasattr(GlxWindows[i], "id"):
rotator = RotateGlxThread(GlxWindows[i].id, i + 1)
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/graphics_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def warnings_filtered(self):
excludes = set(
[
"warning, (EE) error, (NI) not implemented, (??) unknown.",
'The directory "/usr/share/fonts/X11/cyrillic" does not exist.',
'The directory "/usr/share/fonts/X11/cyrillic" does not exist.', # noqa: E501
'The directory "/usr/share/fonts/X11/100dpi/" does not exist.',
'The directory "/usr/share/fonts/X11/75dpi/" does not exist.',
'The directory "/usr/share/fonts/X11/100dpi" does not exist.',
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def run(self):
# time without timeout to catch devices that slow down, and also
# not prematurely end iperf on low-bandwidth devices.
self.timeout = 1080 * int(self.data_size)
cmd = "timeout -k 1 {} {} -b {}M -c {} -n {}G -i 1 -f m -P {}".format(
cmd = "timeout -k 1 {} {} -b {}M -c {} -n {}G -i 1 -f m -P {}".format( # noqa: E501
self.timeout,
self.executable,
thread_bit_rate,
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/prime_offload_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def parse_args(self, args=sys.argv[1:]):
"--timeout",
type=int,
default=20,
help="executing command duration in second (default: %(default)s).",
help="executing command duration in second (default: %(default)s).", # noqa: E501
)
return parser.parse_args(args)

Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/removable_storage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def main():
min_space = HumanReadableBytes("1MiB")
if smallest_freespace < min_space:
sys.exit(
"Not enough space. {} is required on {}".format(
"Not enough space. {} is required on {}".format( # noqa: E501
min_space, smallest_partition
)
)
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/sof_ri_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4089,7 +4089,7 @@ def dump_attrib_info(self, pref, attr_name):
)

def dump_comp_info(self, pref, comp_filter=""):
"""Prints out all nested components (filtered by name set to 'filter')"""
"""Prints out all nested components (filtered by name set to 'filter')""" # noqa: E501
for comp in self.components:
if comp.name in comp_filter:
continue
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/stress_ng_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(self):
time_str = time.strftime("%d %b %H:%M", time.gmtime())
if len(self.stressors) == 1:
print(
"{}: Running stress-ng {} stressor for {:.0f} seconds...".format(
"{}: Running stress-ng {} stressor for {:.0f} seconds...".format( # noqa: E501
time_str, self.stressors[0], self.sng_timeout
)
)
Expand Down
2 changes: 1 addition & 1 deletion providers/base/bin/wifi_ap_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():
("How many host do you want your DHCP pool to hold to", "100"),
("Do you want to enable connection sharing?", "y"),
(
"Which network interface you want to use for connection sharing?",
"Which network interface you want to use for connection sharing?", # noqa: E501
shared_iface,
),
("Do you want to enable the AP now?", "y"),
Expand Down

0 comments on commit 7edd537

Please sign in to comment.