Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
koopmant committed Oct 10, 2024
1 parent 72a3bae commit 5b6c244
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
4 changes: 3 additions & 1 deletion app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,9 @@ def get_private_ip():
MACHINA_BASE_TEMPLATE_NAME = "base.html"
MACHINA_PROFILE_AVATARS_ENABLED = False
MACHINA_FORUM_NAME = "Grand Challenge Forums"
MACHINA_MARKUP_WIDGET = "grandchallenge.core.widgets.MarkdownEditorInlineWidget"
MACHINA_MARKUP_WIDGET = (
"grandchallenge.core.widgets.MarkdownEditorInlineWidget"
)
MACHINA_MARKUP_LANGUAGE = (
"grandchallenge.core.templatetags.bleach.md2html",
{"link_blank_target": True},
Expand Down
5 changes: 4 additions & 1 deletion app/grandchallenge/algorithms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@
from grandchallenge.core.guardian import get_objects_for_user
from grandchallenge.core.templatetags.bleach import clean
from grandchallenge.core.templatetags.remove_whitespace import oxford_comma
from grandchallenge.core.widgets import JSONEditorWidget, MarkdownEditorInlineWidget
from grandchallenge.core.widgets import (
JSONEditorWidget,
MarkdownEditorInlineWidget,
)
from grandchallenge.evaluation.utils import get
from grandchallenge.groups.forms import UserGroupForm
from grandchallenge.hanging_protocols.models import VIEW_CONTENT_SCHEMA
Expand Down
5 changes: 4 additions & 1 deletion app/grandchallenge/archives/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
WorkstationUserFilterMixin,
)
from grandchallenge.core.guardian import get_objects_for_user
from grandchallenge.core.widgets import JSONEditorWidget, MarkdownEditorInlineWidget
from grandchallenge.core.widgets import (
JSONEditorWidget,
MarkdownEditorInlineWidget,
)
from grandchallenge.groups.forms import UserGroupForm
from grandchallenge.hanging_protocols.models import VIEW_CONTENT_SCHEMA
from grandchallenge.reader_studies.models import ReaderStudy
Expand Down
5 changes: 4 additions & 1 deletion app/grandchallenge/blogs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ class Meta:
class PostUpdateForm(PostForm):
class Meta(PostForm.Meta):
fields = (*PostForm.Meta.fields, "published", "content")
widgets = {**PostForm.Meta.widgets, "content": MarkdownEditorInlineWidget}
widgets = {
**PostForm.Meta.widgets,
"content": MarkdownEditorInlineWidget,
}


class AuthorsForm(UserGroupForm):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
here. Drag and drop images to upload them to the server. For code blocks with python syntax highlighting
use ```python ```. See <a href="https://pygments.org/languages/">here</a> for a list of other
supported languages. To embed YouTube videos use [youtube id].
</p>
</p>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div style="font-family: monospace">
{% include 'django/forms/widgets/textarea.html' %}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
<md-quote class="btn btn-sm" title="Quote"><i class="fas fa-quote-left"></i></md-quote>
<md-code class="btn btn-sm" title="Inline Code"><i class="fas fa-code"></i></md-code>
<md-link class="btn btn-sm" title="Link"><i class="fas fa-link"></i></md-link>
</markdown-toolbar>
</markdown-toolbar>
5 changes: 4 additions & 1 deletion app/grandchallenge/evaluation/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
get_objects_for_user,
)
from grandchallenge.core.templatetags.remove_whitespace import oxford_comma
from grandchallenge.core.widgets import JSONEditorWidget, MarkdownEditorInlineWidget
from grandchallenge.core.widgets import (
JSONEditorWidget,
MarkdownEditorInlineWidget,
)
from grandchallenge.evaluation.models import (
EXTRA_RESULT_COLUMNS_SCHEMA,
CombinedLeaderboard,
Expand Down

0 comments on commit 5b6c244

Please sign in to comment.