Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into mozga-intel/optional_…
Browse files Browse the repository at this point in the history
…move_support
  • Loading branch information
mozga-intel committed Sep 21, 2021
2 parents 46ad95b + cd3d935 commit b5ea461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def _print_summary_map(strm, result_map, ftype):
if len(result_map) == 0:
return 0
npass = len([x for k, x in result_map.items() if len(x) == 0])
strm.write('=====%d/%d %s files passed check=====\n' % (npass, len(result_map), ftype))
strm.write(f'====={npass}/{len(result_map)} {ftype} files passed check=====\n')
for fname, emap in result_map.items():
if len(emap) == 0:
continue
strm.write('%s: %d Errors of %d Categories map=%s\n' % (
fname, sum(emap.values()), len(emap), str(emap)))
strm.write(
f'{fname}: {sum(emap.values())} Errors of {len(emap)} Categories map={str(emap)}\n')
return len(result_map) - npass

def __init__(self):
Expand Down Expand Up @@ -111,7 +111,7 @@ def print_summary(self, strm):
if nerr == 0:
strm.write('All passed!\n')
else:
strm.write('%d files failed lint\n' % nerr)
strm.write(f'{nerr} files failed lint\n')
return nerr

# singleton helper for lint check
Expand Down

0 comments on commit b5ea461

Please sign in to comment.