Skip to content

Commit

Permalink
fix: πŸ› Do not build on Ubuntu 24, yet
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 7, 2024
1 parent 6a71989 commit d70b8b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release
on: [workflow_dispatch]
jobs:
release:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
concurrency: release
environment:
name: pypi
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
poetry run pyinstaller \
-n codelimit --onefile -c codelimit/__main__.py
OUT_FILE_NAME: dist/codelimit.exe
- os: ubuntu-latest
- os: ubuntu-22.04
TARGET: linux
CMD_BUILD: |
poetry run pyinstaller \
Expand Down
6 changes: 4 additions & 2 deletions codelimit/common/Scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ def print_header(cached_report, path):
def print_refactor_candidates(scan_totals: ScanTotals):
total_hard_to_maintain = scan_totals.total_hard_to_maintain()
if total_hard_to_maintain > 0:
text = "functions are" if total_hard_to_maintain > 1 else "function is"
print(
f" [dark_orange]\u26A0[/dark_orange] {total_hard_to_maintain} functions are hard-to-maintain."
f" [dark_orange]\u26A0[/dark_orange] {total_hard_to_maintain} {text} hard-to-maintain."
)
total_unmaintainable = scan_totals.total_unmaintainable()
if total_unmaintainable > 0:
print(f" [red]\u2716[/red] {total_unmaintainable} functions need refactoring.")
text = "functions need" if total_unmaintainable > 1 else "function needs"
print(f" [red]\u2716[/red] {total_unmaintainable} {text} refactoring.")
if total_hard_to_maintain == 0 and total_unmaintainable == 0:
print(
" [bold]Refactoring not necessary, :glowing_star: happy coding! :glowing_star:[/bold]"
Expand Down

0 comments on commit d70b8b3

Please sign in to comment.