Skip to content

Commit

Permalink
format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 19, 2024
1 parent a0361e9 commit 9013f6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dooit/ui/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def __init__(self, status: ModeType) -> None:
super().__init__()
self.status: ModeType = status


class StartSearch(DooitEvent):
"""
Emitted when user wants to search
Expand All @@ -65,7 +66,6 @@ def __init__(self, callback: Callable) -> None:
self.callback = callback



class TopicSelect(DooitEvent):
"""
Emitted when the user selects a todo from search list
Expand Down
6 changes: 1 addition & 5 deletions dooit/ui/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@
from .bars import BarSwitcher


__all__ = [
"SortOptions",
"HelpMenu",
"BarSwitcher"
]
__all__ = ["SortOptions", "HelpMenu", "BarSwitcher"]
1 change: 1 addition & 0 deletions dooit/ui/widgets/bars/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from textual.widgets import Static


class BarBase(Static):
DEFAULT_CSS = """
BarBase {
Expand Down
2 changes: 1 addition & 1 deletion dooit/ui/widgets/inputs/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Input:
highlight_pattern = ""
is_editing = False

def __init__(self, value = "") -> None:
def __init__(self, value="") -> None:
self._value = value
self._cursor_position = len(self._value)

Expand Down

0 comments on commit 9013f6b

Please sign in to comment.