chore(deps): update dependency ruff to ^0.9.0 (#4871)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-01-13 15:43:55 +00:00
committed by GitHub
parent ea0bec2336
commit 2c2de1e95b
22 changed files with 124 additions and 138 deletions

View File

@@ -26,8 +26,7 @@ def fix_group_with_no_name(session: Session):
return
logger.info(
f'{len(groups)} {"group" if len(groups) == 1 else "groups"} found with a missing name; '
f"applying default name"
f"{len(groups)} {'group' if len(groups) == 1 else 'groups'} found with a missing name; applying default name"
)
offset = 0

View File

@@ -51,7 +51,7 @@ def fix_dangling_refs(session: Session):
if result.rowcount:
logger.info(
f'Reassigned {result.rowcount} {"row" if result.rowcount == 1 else "rows"} '
f"Reassigned {result.rowcount} {'row' if result.rowcount == 1 else 'rows'} "
f'in "{table_name}" table to default user ({default_user.id})'
)
@@ -63,7 +63,7 @@ def fix_dangling_refs(session: Session):
if result.rowcount:
logger.info(
f'Deleted {result.rowcount} {"row" if result.rowcount == 1 else "rows"} '
f"Deleted {result.rowcount} {'row' if result.rowcount == 1 else 'rows'} "
f'in "{table_name}" table with invalid user ids'
)