Skip to content

Commit

Permalink
format: use all readme formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Dec 12, 2023
1 parent 27949aa commit a9c3fd7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/class_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@ def toggle(self) -> None:
def is_off(self) -> bool:
return self.mode == SingleLineMode.OFF

def is_not_none(self) -> bool:
return self.mode != SingleLineMode.NONE

def is_once(self) -> bool:
return self.mode == SingleLineMode.ONLY_ONCE

def set_on(self) -> None:
self.mode = SingleLineMode.ON

def set_off(self) -> None:
self.mode = SingleLineMode.OFF

def set_once(self) -> None:
self.mode = SingleLineMode.ONLY_ONCE

Expand Down
2 changes: 2 additions & 0 deletions src/cursor_movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from src.keys import Key
from src.utils import clamp


def relative_cursor_to(
win: Any, todos: list[Todo], selected: int, first_digit: int
) -> int:
Expand All @@ -36,6 +37,7 @@ def relative_cursor_to(
continue
return selected


def cursor_up(selected: int, len_todos: int) -> int:
return clamp(selected - 1, 0, len_todos)

Expand Down
1 change: 1 addition & 0 deletions src/get_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def _get_checkbox(win: Any) -> str:
except TypeError:
return CHECKBOX_OPTIONS[1]


def get_args() -> Namespace:
parser = ArgumentParser(
description="Ndo is a todo list program to help you manage your todo lists",
Expand Down
3 changes: 0 additions & 3 deletions src/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ class Key:
ctrl_x = 24
escape = 27
minus = 45
dash = 45
hyphen = 45
slash = 47
forward_slash = 47
zero = 48
one = 49
ctrl_arrow = 49
Expand Down

0 comments on commit a9c3fd7

Please sign in to comment.