Skip to content

Commit 30930a1

Browse files
committed
fix some linter issues
1 parent dcc41c9 commit 30930a1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/trackr/cli.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def note_from_clipboard(
138138
be added as a note.
139139
:return: This function does not return a value.
140140
"""
141-
"""Add clipboard text as note."""
141+
142142
init_db()
143143
clip = pyperclip.paste().strip()
144144
if not clip:
@@ -181,7 +181,7 @@ def add_from_clipboard( # pylint: disable=too-many-arguments,too-many-positional
181181
:param meta_items: A list of additional metadata key-value pairs in the format "key=value".
182182
:return: None
183183
"""
184-
"""Create item using clipboard text as title or description."""
184+
185185
init_db()
186186

187187
try:
@@ -249,7 +249,7 @@ def list_cmd(
249249
:raises typer.BadParameter: If the state filter is invalid or if one of the
250250
specified fields in the fields parameter is not valid.
251251
"""
252-
"""List items."""
252+
253253
init_db()
254254

255255
try:
@@ -261,14 +261,14 @@ def list_cmd(
261261
typer.echo("No items found.")
262262
return
263263

264-
VALID_FIELDS = {
264+
VALID_FIELDS = {# module top-level
265265
"id",
266266
"title",
267267
"description",
268268
"state",
269269
"next_review",
270270
"last_event_at",
271-
} # module top-level
271+
}
272272

273273
selected_fields = None
274274
if fields:
@@ -354,7 +354,7 @@ def set_state_cmd(item_id: str = typer.Argument(...), new_state: str = typer.Arg
354354
:type new_state: str
355355
:return: None
356356
"""
357-
"""Change item state."""
357+
358358
init_db()
359359
try:
360360
set_state(item_id, new_state)
@@ -379,7 +379,7 @@ def note(item_id: str = typer.Argument(...), text: str = typer.Argument(...)) ->
379379
:return: None
380380
:raises typer.BadParameter: If the provided input parameters are invalid.
381381
"""
382-
"""Add a note to an item."""
382+
383383
init_db()
384384
try:
385385
add_note(item_id, text)
@@ -406,7 +406,7 @@ def set_review_cmd(
406406
or an empty string if no date is specified.
407407
:return: None
408408
"""
409-
"""Set next review date."""
409+
410410
init_db()
411411
try:
412412
set_next_review(item_id, next_review or None)
@@ -435,7 +435,7 @@ def review(
435435
from all categories will be displayed.
436436
:return: None
437437
"""
438-
"""Show review agenda."""
438+
439439
init_db()
440440
groups = review_items(due_only=due_only)
441441

@@ -469,7 +469,7 @@ def import_yaml(path: Path = typer.Argument(..., exists=True, readable=True)) ->
469469
:raises typer.BadParameter: If the YAML content doesn't meet the required
470470
structure or any individual item within the file is invalid.
471471
"""
472-
"""Import or upsert items from YAML."""
472+
473473
init_db()
474474
with path.open("r", encoding="utf-8") as f:
475475
data = yaml.safe_load(f) or {}
@@ -510,7 +510,7 @@ def export_yaml(path: Path = typer.Argument(...)) -> None:
510510
items exported.
511511
:rtype: None
512512
"""
513-
"""Export all items to YAML."""
513+
514514
init_db()
515515
payload = {"items": export_items()}
516516
path.parent.mkdir(parents=True, exist_ok=True)
@@ -558,7 +558,7 @@ def history_cmd(
558558
:param limit: The maximum number of events to display. Default is 50.
559559
:return: None
560560
"""
561-
"""Show full event history for one item."""
561+
562562
init_db()
563563
try:
564564
rows = history(item_id, limit)

0 commit comments

Comments
 (0)