From 4d589beda58ff5d96067e825abdb89c0ff6336f3 Mon Sep 17 00:00:00 2001 From: Ritchie Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Tue, 6 Jan 2026 21:36:25 +0200 Subject: [PATCH] 4.0/release-candidate --- pyproject.toml | 7 ++++--- src/octosuite/__init__.py | 2 +- src/octosuite/lib.py | 3 ++- src/octosuite/tui/menus.py | 14 +++++++------- uv.lock | 2 ++ 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 790b8dc..d276323 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "octosuite" -version = "4.0.1beta2" +version = "4.0.0rc0" description = "TUI-based toolkit for GitHub data analysis." readme = "README.md" license = "MIT" @@ -12,7 +12,8 @@ dependencies = [ "rich>=14.2.0", "questionary>=2.1.1", "pyfiglet>=1.0.4", - "update-checker>=0.18.0" + "update-checker>=0.18.0", + "black>=25.12.0", ] classifiers = [ "Development Status :: 4 - Beta", @@ -33,4 +34,4 @@ dev = [ ] [project.scripts] -octosuite = "octosuite.app:start" \ No newline at end of file +octosuite = "octosuite.app:start" diff --git a/src/octosuite/__init__.py b/src/octosuite/__init__.py index 4028570..68055f5 100644 --- a/src/octosuite/__init__.py +++ b/src/octosuite/__init__.py @@ -1,2 +1,2 @@ __pkg__ = "octosuite" -__version__ = "4.0.1beta2" +__version__ = "4.0.0rc0" diff --git a/src/octosuite/lib.py b/src/octosuite/lib.py index b47c2a4..d2a9f8e 100644 --- a/src/octosuite/lib.py +++ b/src/octosuite/lib.py @@ -63,6 +63,7 @@ def preview_response(data: t.Union[dict, list], source: str, _type: str): item.get("full_name") or item.get("name") or item.get("login") + or item.get("type") or item.get("id") or "Item" ) @@ -215,7 +216,7 @@ def fill_tree(tree: Tree, data: t.Union[dict, list]) -> Tree: def check_updates(): """Check for available package updates and display the result.""" - with console.status("[dim]Checking for updates...[/dim]") as status: + with console.status("[dim]Checking for updates[/dim]…") as status: checker = UpdateChecker() result = checker.check(__pkg__, __version__) if result is not None: diff --git a/src/octosuite/tui/menus.py b/src/octosuite/tui/menus.py index efaf726..385347c 100644 --- a/src/octosuite/tui/menus.py +++ b/src/octosuite/tui/menus.py @@ -99,7 +99,7 @@ class BaseMenu: target_type = "org" with Status( - f"[dim]Validating {target_type} ({identifier})[/dim]...", + f"[dim]Validating {target_type} ({identifier})[/dim]…", console=console, ) as status: exists, response = instance.exists() @@ -110,7 +110,7 @@ class BaseMenu: console.print( f"[bold][yellow]✘[/yellow] {response['message']}[/bold]" ) - console.input(" Press [bold]ENTER[/bold] to continue ...") + console.input(" Press [bold]ENTER[/bold] to continue …") callback(*callback_args) return False @@ -135,7 +135,7 @@ class BaseMenu: valid_methods = self.paginated_methods | self.non_paginated_methods if method_name in valid_methods: with Status( - status=f"[dim]Initialising {target_type} {method_name}[/dim]...", + status=f"[dim]Initialising {target_type} {method_name}[/dim]…", console=console, ) as status: data = self.execute_selection( @@ -168,7 +168,7 @@ class BaseMenu: prompts.pagination_params() if method_name in self.paginated_methods else {} ) status.start() - status.update(f"[dim]Getting {method_name} from {source}[/dim]...") + status.update(f"[dim]Getting {method_name} from {source}[/dim]…") return method(**params) def response_handler(self, data: t.Union[dict, list], data_type: str, source: str): @@ -259,7 +259,7 @@ class BaseMenu: file_formats=file_formats, ) - console.input(" Press [bold]ENTER[/bold] to continue ...") + console.input(" Press [bold]ENTER[/bold] to continue …") except KeyboardInterrupt: console.print("\nExport cancelled") @@ -470,7 +470,7 @@ class Menus(BaseMenu): # Execute search if it's a valid method if option in self.search_methods: with Status( - status=f"[dim]Initialising {option} search[/dim]...", console=console + status=f"[dim]Initialising {option} search[/dim]…", console=console ) as status: status.stop() params = prompts.pagination_params() @@ -484,7 +484,7 @@ class Menus(BaseMenu): ) method = getattr(search, option) - status.update(f"[dim]Searching {option} for {query}[/dim]...") + status.update(f"[dim]Searching {option} for {query}[/dim]…") data = method() if data: diff --git a/uv.lock b/uv.lock index 15a8f1f..aa90611 100644 --- a/uv.lock +++ b/uv.lock @@ -144,6 +144,7 @@ name = "octosuite" version = "4.0.0" source = { virtual = "." } dependencies = [ + { name = "black" }, { name = "pyfiglet" }, { name = "questionary" }, { name = "rich" }, @@ -157,6 +158,7 @@ dev = [ [package.metadata] requires-dist = [ + { name = "black", specifier = ">=25.12.0" }, { name = "black", marker = "extra == 'dev'", specifier = ">=25.12.0" }, { name = "pyfiglet", specifier = ">=1.0.4" }, { name = "questionary", specifier = ">=2.1.1" },