Skip to content

Commit

Permalink
fix ruff 0.5.0 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jun 27, 2024
1 parent a3b30ab commit 06cb4cc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lint.select = [
"YTT", # flake8-2020
# "ANN", # flake8-annotationsq, still gives errors for `self`
# "ASYNC", # flake8-async
"TRIO", # flake8-trio
"ASYNC1", # flake8-trio
# "S", # flake8-bandit
"BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap
Expand Down Expand Up @@ -69,7 +69,7 @@ lint.select = [
# To avoid unexpected behavior, we recommend disabling these rules, either by removing them from the `select` or `extend-select` configuration, or adding them to the `ignore` configuration.

lint.ignore = [
"PLR6104", # Use `+=` to perform an augmented assignment directly
# "PLR6104", # Use `+=` to perform an augmented assignment directly
# until this bug is fixed: https://github.com/astral-sh/ruff/issues/10911

"PYI034", # py3.11: `__iadd__` methods in classes like `...` usually return `self` at runtime
Expand Down
3 changes: 1 addition & 2 deletions scal3/event_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
from scal3.core import (
getAbsWeekNumberFromJd,
jd_to_primary,
log,
)
from scal3.date_utils import checkDate, dateDecode, dateEncode, jwday
from scal3.interval_utils import (
Expand Down Expand Up @@ -4675,7 +4674,7 @@ def importData(

eid = idByUuid.get(uuid)
if eid is None:
log.debug("appending event uuid =", uuid)
log.debug(f"appending event uuid = {uuid}")
event = self.appendByData(eventData)
res.newEventIds.add((gid, event.id))
continue
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/day_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

from scal3 import core, ui
from scal3.cal_types import calTypes
from scal3.core import log
from scal3.drawing import getAbsPos
from scal3.locale_man import (
getMonthName,
Expand Down
1 change: 0 additions & 1 deletion scal3/ui_gtk/mainwin_items/monthCal.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

from scal3 import cal_types, core, ui
from scal3.cal_types import calTypes
from scal3.core import log
from scal3.locale_man import rtl, rtlSgn
from scal3.locale_man import tr as _
from scal3.monthcal import getCurrentMonthStatus
Expand Down

0 comments on commit 06cb4cc

Please sign in to comment.