Skip to content
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ repos:
- id: check-useless-excludes
- id: identity
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- repo: https://github.com/psf/black
rev: 22.6.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
args: [--config=app/pyproject-ci.toml]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 8.0.1
hooks:
- id: isort
name: isort (python)
args: [--settings-file=app/pyproject-ci.toml]
- repo: https://github.com/pycqa/pylint
rev: v2.14.4
rev: v4.0.5
hooks:
- id: pylint
args: [--rcfile=app/pyproject-ci.toml]
- repo: https://github.com/asottile/pyupgrade
rev: 'v2.37.1'
rev: 'v3.21.2'
hooks:
- id: pyupgrade
args: [--py38-plus]
6 changes: 3 additions & 3 deletions app/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def formfield_for_foreignkey(self, db_field, request, **kwargs):
input_value = models.InputValue.objects.get(pk=input_value_id)

if db_field.name == "input_element":
kwargs[
"queryset"
] = input_value.value_type.challenge.inputelement_set.order_by("name")
kwargs["queryset"] = (
input_value.value_type.challenge.inputelement_set.order_by("name")
)

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

Expand Down
1 change: 1 addition & 0 deletions app/core/batching.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Batch up file types.
"""

import csv
import os.path
import tempfile
Expand Down
1 change: 1 addition & 0 deletions app/core/filecache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
When we have files stored on S3, we want to seamlessly manage local copies for submission to containers.
"""

import logging
import os.path
import shutil
Expand Down
2 changes: 1 addition & 1 deletion app/core/management/commands/sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def handle(self, *args, **options): # pylint:disable=unused-argument

User = get_user_model()

(user, _) = User.objects.get_or_create(
user, _ = User.objects.get_or_create(
username="milo", email="braxton.robbason@gmail.com"
)
foo_url = "https://foo.com"
Expand Down
6 changes: 3 additions & 3 deletions app/core/models/admin_managed.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def fully_loaded(self):
element_visibilities.add(element.is_public)
if element_visibilities != {False, True}:
valid = False
errors[
"Need both public and private elements"
] = f"Found {element_visibilities}"
errors["Need both public and private elements"] = (
f"Found {element_visibilities}"
)
if not valid:
raise NotFullyLoadedException(str(self), errors)

Expand Down
1 change: 1 addition & 0 deletions app/core/values_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Given an InputElement, load pairs of dicts of value_type.key: value
one for files, one for non-files
"""

from typing import TYPE_CHECKING, List

if TYPE_CHECKING:
Expand Down
1 change: 1 addition & 0 deletions app/manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions app/sampl/base_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Django settings for SAMPL project.
"""

# Custom settings for SAMPL
VISUALIZE_DASK_GRAPH = False
DASK_SCHEDULER_URL = "localhost:8786"
Expand Down
1 change: 1 addition & 0 deletions app/sampl/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SAMPL URL Configuration"""

from django.conf import settings
from django.contrib import admin
from django.urls import include, path
Expand Down
Loading