Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff python #66

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ docs/build/
docs/source/reference/

.coverage

# from prettier
node_modules/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ show-fixes = false

line-length = 100

target-version = "py38"
target-version = "py311"

[tool.ruff.lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion tin/apps/assignments/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from collections.abc import Iterable
from logging import getLogger
from typing import Iterable

from django import forms
from django.conf import settings
Expand Down
2 changes: 1 addition & 1 deletion tin/apps/submissions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def filter_view(request):
"submissions/filter.html",
{
"form": filter_form,
"submissions": list(zip(queryset, submission_texts)),
"submissions": list(zip(queryset, submission_texts, strict=False)),
"action": "show_code",
"nav_item": "Filter submissions",
},
Expand Down
3 changes: 2 additions & 1 deletion tin/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"to_html",
)

from typing import TYPE_CHECKING, Any, Callable, Literal
from collections.abc import Callable
from typing import TYPE_CHECKING, Any, Literal

import pytest
from django.template import Context, Engine
Expand Down
Loading