Skip to content

Commit

Permalink
ruff: Use py312 target version
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Mar 26, 2024
1 parent 4850683 commit 42b3e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion foundationsync/indico_foundationsync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _parse_room_data(self, raw_data, coordinates, room_id):
return data, email_warning

def _prepare_row(self, row, cursor):
return dict(zip([d[0] for d in cursor.description], row))
return dict(zip([d[0] for d in cursor.description], row, strict=True))

def _update_room(self, room, room_data, changes):
room.is_deleted = False
Expand Down
3 changes: 2 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target-version = 'py39'
target-version = 'py312'
line-length = 120
extend-exclude = ['docs', 'htmlcov', '*.egg-info']

Expand Down Expand Up @@ -49,6 +49,7 @@ ignore = [
'RUF015', # not always more readable, and we don't do it for huge lists
'RUF022', # autofix messes up out formatting instead of just sorting
'RUF027', # also triggers on i18n functions -> too noisy for now
'UP038', # it looks kind of weird and it slower than a tuple
'D205', # too many docstrings which have no summary line
'D301', # https://github.com/astral-sh/ruff/issues/8696
'D1', # we have way too many missing docstrings :(
Expand Down

0 comments on commit 42b3e98

Please sign in to comment.