Skip to content

Commit 9487895

Browse files
committed
[Fixed] Flake8 issues inside f-strings
1 parent c4d5a35 commit 9487895

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

kibot/GUI/analyze.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ def report(all, kind):
159159
logger.info('-'*80)
160160
logger.info('Used as single data type:')
161161
for k, v in sorted(all.dts_s.items(), key=lambda x: len(x[1]), reverse=True):
162-
logger.info(f'- {k:>18}: {len(v):4d} {"" if len(v)>10 else v}')
162+
logger.info(f'- {k:>18}: {len(v):4d} {"" if len(v) > 10 else v}')
163163

164164
logger.info('-'*80)
165165
logger.info(f'{len(all.dts_m)} different data type combinations')
166166
for k, v in sorted(all.dts_m.items(), key=lambda x: len(x[1]), reverse=True):
167-
logger.info(f'- {k:>26}: {len(v):4d} {"" if len(v)>10 else v}')
167+
logger.info(f'- {k:>26}: {len(v):4d} {"" if len(v) > 10 else v}')
168168

169169

170170
def scan_items(category, iterable, accum, totals, config):

kibot/optionable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def check_string_dict(self, v_type, valid, k, v):
202202
for key, value in v.items():
203203
if not isinstance(value, str):
204204
raise KiPlotConfigurationError(f"Key `{key}` of option `{k}` must be a string, not"
205-
f" `{typeof(value,Optionable)}`")
205+
f" `{typeof(value, Optionable)}`")
206206
return True
207207

208208
def _perform_config_mapping(self):

tools/test_times/process_times.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
cut_done = True
4848

4949
print(f'Runs: {total_n}')
50-
print(f'Total time: {round(total_tm)} s ({round(total_tm/60,1)} m)')
51-
print(f'Average: {round(avg,1)} s')
50+
print(f'Total time: {round(total_tm)} s ({round(total_tm/60, 1)} m)')
51+
print(f'Average: {round(avg, 1)} s')
5252
print(f'Cut: {cut*100} % ({cut_n}): {slot_cut} s ({total_n-cut_n})')
5353

5454
with open('slowest.txt', 'wt') as f:

0 commit comments

Comments
 (0)