Closed Ammar64 closed 2 weeks ago
Now outputs this
Is it good ?
Now it does this
it seems like it looks for ensure_sorted.py in this repo instead of the fork.
Merge and test it.
Categories names should be written either this way ## – <Category name> –
or this way ### • <Category name>
Nice! :+1:
The workflow_dispatch
shouldn't be needed I guess as the others should cover the use cases already.
workflow_dispatch
removed
So here we go! :smile:
Thank you! :-)
@offa unfortunately it still can't find the python file even after merge I wonder why?
Me too :sweat_smile:
Ah, checkout is missing … I'll give it a try.
File is found now, but there's a syntax error:
File "/home/runner/work/android-foss/android-foss/ensure_sorted.py", line 96
print(f' {bcolors.RED if color else ''}{unsorted[j]}{bcolors.ENDC if color else ''}{((longest_str-len(unsorted[j]))+2) * ' '}{bcolors.GREEN if color else ''}{sorted[j]}{bcolors.ENDC if color else ''}')
^
SyntaxError: f-string: expecting '}'
Ah string quotations inside {}
needs python 3.12
I'll fix it
I have another fixed added to ci
branch.
Further fixes in #463.
I made a python script to ensure all categories are sorted.
Currently all it does is to report unsorted categories.
it currently outputs this
so check those categories
TODOS