Skip to content

Commit

Permalink
change ruff formatter settings and re-format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Mar 14, 2024
1 parent edaa5e2 commit 7ac636b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ indent-style = "tab"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
line-ending = "lf"
docstring-code-format = false


[tool.ruff.lint.mccabe]
Expand Down
2 changes: 1 addition & 1 deletion scal3/bin_heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def getMin(self):
** int(
math_log2(len(self)),
)
):
) :
],
)
return -k, v
Expand Down
1 change: 0 additions & 1 deletion scal3/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ def dayOpenEvolution(arg: Any = None) -> None: # noqa: ARG001


class Cell(CellType):

"""status and information of a cell."""

# ocTimeMax = 0
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class GtkBufferFile:

"""Implements a file-like object for redirect the stream to the buffer."""

def __init__(self, buff, tag):
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def getSubPages(self) -> "list[StackPage]": # noqa: PLR6301


class CustomizableCalBox(CustomizableCalObj):

"""for GtkBox (HBox and VBox)."""

def appendItem(self, item):
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/event/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def getData(self):


class TagsListBox(gtk.Box):

"""
[x] Only related tags tt: Show only tags related to this event type
Sort by:
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/mywidgets/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


class SLabel(gtk.Label):

"""
Selectable Label with custom, localized and minimal menu
for right-click, with only 2 menu items: Copy All, Copy.
Expand Down

0 comments on commit 7ac636b

Please sign in to comment.