Skip to content

Commit d70b8b3

Browse files
committed
fix: πŸ› Do not build on Ubuntu 24, yet
1 parent 6a71989 commit d70b8b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release
22
on: [workflow_dispatch]
33
jobs:
44
release:
5-
runs-on: ubuntu-22.04
5+
runs-on: ubuntu-latest
66
concurrency: release
77
environment:
88
name: pypi
@@ -81,7 +81,7 @@ jobs:
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 \

β€Žcodelimit/common/Scanner.pyβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ def print_header(cached_report, path):
6767
def 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]"

0 commit comments

Comments
Β (0)