8000 test: raise coverage to ≥90% and make CI coverage gate fatal at 90% by devin-ai-integration[bot] · Pull Request #106 · dominicusin/package-maximizer · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
# Fatals coverage gate only where all heavy solvers build (ubuntu).
# On macOS/Windows ortools/pysat cannot always compile, so their
# modules stay uncovered and a hard gate would always fail there.
COV_FAIL_UNDER: ${{ matrix.os == 'ubuntu-latest' && '85' || '' }}
COV_FAIL_UNDER: ${{ matrix.os == 'ubuntu-latest' && '90' || '' }}
shell: bash
run: |
GATE_FLAG=""
Expand Down
11 changes: 1 addition & 10 deletions package_maximizer/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ def dark_mode(self) -> bool:

def toggle_dark_mode(self) -> None:
self._dark_mode = not self._dark_mode
if self._dark_mode:
self.styles.background = "color: $boost"
self.query_one("#main").styles.background = "color: $surface"
self.query_one("#log").styles.background = "color: $surface"
else:
self.styles.background = "color: $surface"
self.query_one("#main").styles.background = None
self.query_one("#log").styles.background = None
self.set_class(self._dark_mode, "dark-mode")

def compose(self) -> ComposeResult:
yield Header()
Expand Down Expand Up @@ -143,8 +136,6 @@ def action_toggle_dark_mode(self) -> None:

def action_help(self) -> None:
"""Show help dialog via keyboard shortcut (Ctrl+H)."""
from textual.widgets import Footer

log = self.query_one("#log_output", Log)
log.write_line("")
log.write_line("=== HELP ===")
Expand Down
Loading
Loading
0