1+
2+ """
3+ CLI funtions
4+ """
5+
6+
17from __future__ import annotations
28
39import json
2733
2834app = typer .Typer (help = "Simple CLI follow-up tracker" )
2935
30- """
31- CLI funtions
32- """
3336
3437
3538
@@ -42,7 +45,7 @@ def init() -> None:
4245
4346
4447@app .command ()
45- def add (
48+ def add ( # pylint: disable=too-many-arguments,too-many-positional-arguments
4649 item_id : str = typer .Argument (..., help = "Unique item id" ),
4750 title : str = typer .Argument (..., help = "Title" ),
4851 state : str = typer .Option ("created" , help = "Initial state" ),
@@ -111,7 +114,7 @@ def note_from_clipboard(
111114 typer .echo (f"Note added from clipboard to { item_id } " )
112115
113116@app .command ("add-from-clipboard" )
114- def add_from_clipboard (
117+ def add_from_clipboard ( # pylint: disable=too-many-arguments,too-many-positional-arguments
115118 item_id : str = typer .Argument (..., help = "Unique item id" ),
116119 title : Optional [str ] = typer .Option (None , help = "Optional title override" ),
117120 state : str = typer .Option ("created" , help = "Initial state" ),
@@ -282,7 +285,12 @@ def set_review_cmd(
282285
283286
284287@app .command ()
285- def review (due_only : bool = typer .Option (False , help = "Show only overdue/ready waityou items" )) -> None :
288+ def review (
289+ due_only : bool = typer .Option (
290+ False ,
291+ help = "Show only overdue/ready waityou items"
292+ )
293+ ) -> None :
286294 """Show review agenda."""
287295 init_db ()
288296 groups = review_items (due_only = due_only )
@@ -337,7 +345,12 @@ def export_yaml(path: Path = typer.Argument(...)) -> None:
337345
338346
339347@app .command ()
340- def activity_cmd (limit : int = typer .Option (20 , help = "How many events to show" )) -> None :
348+ def activity_cmd (
349+ limit : int = typer .Option (
350+ 20 ,
351+ help = "How many events to show"
352+ )
353+ ) -> None :
341354 """Show recent activity across all items."""
342355 init_db ()
343356 rows = activity (limit )
0 commit comments