File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: release
22on : [workflow_dispatch]
33jobs :
44 release :
5- runs-on : ubuntu-22.04
5+ runs-on : ubuntu-latest
66 concurrency : release
77 environment :
88 name : pypi
8181 poetry run pyinstaller \
8282 -n codelimit --onefile -c codelimit/__main__.py
8383 OUT_FILE_NAME : dist/codelimit.exe
84- - os : ubuntu-latest
84+ - os : ubuntu-22.04
8585 TARGET : linux
8686 CMD_BUILD : |
8787 poetry run pyinstaller \
Original file line number Diff line number Diff line change @@ -67,12 +67,14 @@ def print_header(cached_report, path):
6767def print_refactor_candidates (scan_totals : ScanTotals ):
6868 total_hard_to_maintain = scan_totals .total_hard_to_maintain ()
6969 if total_hard_to_maintain > 0 :
70+ text = "functions are" if total_hard_to_maintain > 1 else "function is"
7071 print (
71- f" [dark_orange]\u26A0 [/dark_orange] { total_hard_to_maintain } functions are hard-to-maintain."
72+ f" [dark_orange]\u26A0 [/dark_orange] { total_hard_to_maintain } { text } hard-to-maintain."
7273 )
7374 total_unmaintainable = scan_totals .total_unmaintainable ()
7475 if total_unmaintainable > 0 :
75- print (f" [red]\u2716 [/red] { total_unmaintainable } functions need refactoring." )
76+ text = "functions need" if total_unmaintainable > 1 else "function needs"
77+ print (f" [red]\u2716 [/red] { total_unmaintainable } { text } refactoring." )
7678 if total_hard_to_maintain == 0 and total_unmaintainable == 0 :
7779 print (
7880 " [bold]Refactoring not necessary, :glowing_star: happy coding! :glowing_star:[/bold]"
You canβt perform that action at this time.
0 commit comments