Skip to content

Commit 452185b

Browse files
Ruff python (#66)
Followup to #22 - change ruff to use python 3.11 as the base version to get more up-to-date changes (from e.g. `pyupgrade`)
1 parent 08016d3 commit 452185b

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ docs/build/
1313
docs/source/reference/
1414

1515
.coverage
16+
17+
# from prettier
18+
node_modules/

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ show-fixes = false
8686

8787
line-length = 100
8888

89-
target-version = "py38"
89+
target-version = "py311"
9090

9191
[tool.ruff.lint]
9292
select = [

tin/apps/assignments/forms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterable
34
from logging import getLogger
4-
from typing import Iterable
55

66
from django import forms
77
from django.conf import settings

tin/apps/submissions/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def filter_view(request):
295295
"submissions/filter.html",
296296
{
297297
"form": filter_form,
298-
"submissions": list(zip(queryset, submission_texts)),
298+
"submissions": list(zip(queryset, submission_texts, strict=False)),
299299
"action": "show_code",
300300
"nav_item": "Filter submissions",
301301
},

tin/tests/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"to_html",
77
)
88

9-
from typing import TYPE_CHECKING, Any, Callable, Literal
9+
from collections.abc import Callable
10+
from typing import TYPE_CHECKING, Any, Literal
1011

1112
import pytest
1213
from django.template import Context, Engine

0 commit comments

Comments
 (0)