Skip to content

Commit fbfaa34

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ce3df38 commit fbfaa34

7 files changed

Lines changed: 11 additions & 6 deletions

File tree

app/core/admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def formfield_for_foreignkey(self, db_field, request, **kwargs):
235235
input_value = models.InputValue.objects.get(pk=input_value_id)
236236

237237
if db_field.name == "input_element":
238-
kwargs[
239-
"queryset"
240-
] = input_value.value_type.challenge.inputelement_set.order_by("name")
238+
kwargs["queryset"] = (
239+
input_value.value_type.challenge.inputelement_set.order_by("name")
240+
)
241241

242242
return super().formfield_for_foreignkey(db_field, request, **kwargs)
243243

app/core/batching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Batch up file types.
33
"""
4+
45
import csv
56
import os.path
67
import tempfile

app/core/filecache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
When we have files stored on S3, we want to seamlessly manage local copies for submission to containers.
33
"""
4+
45
import logging
56
import os.path
67
import shutil

app/core/models/admin_managed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def fully_loaded(self):
106106
element_visibilities.add(element.is_public)
107107
if element_visibilities != {False, True}:
108108
valid = False
109-
errors[
110-
"Need both public and private elements"
111-
] = f"Found {element_visibilities}"
109+
errors["Need both public and private elements"] = (
110+
f"Found {element_visibilities}"
111+
)
112112
if not valid:
113113
raise NotFullyLoadedException(str(self), errors)
114114

app/core/values_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Given an InputElement, load pairs of dicts of value_type.key: value
33
one for files, one for non-files
44
"""
5+
56
from typing import TYPE_CHECKING, List
67

78
if TYPE_CHECKING:

app/sampl/base_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Django settings for SAMPL project.
33
"""
4+
45
# Custom settings for SAMPL
56
VISUALIZE_DASK_GRAPH = False
67
DASK_SCHEDULER_URL = "localhost:8786"

app/sampl/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""SAMPL URL Configuration"""
2+
23
from django.conf import settings
34
from django.contrib import admin
45
from django.urls import include, path

0 commit comments

Comments
 (0)