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

[pre-commit.ci] pre-commit autoupdate #412

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
10 changes: 5 additions & 5 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: v4.6.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
rev: 24.4.2
hooks:
- id: black
args: [--config=app/pyproject-ci.toml]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: [--settings-file=app/pyproject-ci.toml]
- repo: https://github.com/pycqa/pylint
rev: v2.14.4
rev: v3.2.4
hooks:
- id: pylint
args: [--rcfile=app/pyproject-ci.toml]
- repo: https://github.com/asottile/pyupgrade
rev: 'v2.37.1'
rev: 'v3.16.0'
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
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/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