Apply black on code

This commit is contained in:
Griatch 2025-04-26 14:07:38 +02:00
parent 04ce4f6c5e
commit 0779ec82b6
70 changed files with 184 additions and 85 deletions

View file

@ -109,6 +109,7 @@ class HelpEntry(SharedMemoryModel):
class Meta:
"Define Django meta options"
verbose_name = "Help Entry"
verbose_name_plural = "Help Entries"

View file

@ -5,6 +5,7 @@ command test-suite).
"""
from unittest import mock
from parameterized import parameterized
from evennia.help import filehelp

View file

@ -11,7 +11,6 @@ import re
from django.conf import settings
from lunr.stemmer import stemmer
_RE_HELP_SUBTOPICS_START = re.compile(r"^\s*?#\s*?subtopics\s*?$", re.I + re.M)
_RE_HELP_SUBTOPIC_SPLIT = re.compile(r"^\s*?(\#{2,6}\s*?\w+?[a-z0-9 \-\?!,\.]*?)$", re.M + re.I)
_RE_HELP_SUBTOPIC_PARSE = re.compile(r"^(?P<nesting>\#{2,6})\s*?(?P<name>.*?)$", re.I + re.M)
@ -80,12 +79,10 @@ class LunrSearch:
before twisted's logging has been set up
"""
# Lunr-related imports
from lunr import get_default_builder
from lunr import lunr
from lunr import stop_word_filter
from lunr import get_default_builder, lunr, stop_word_filter
from lunr.exceptions import QueryParseError
from lunr.stemmer import stemmer
from lunr.pipeline import Pipeline
from lunr.stemmer import stemmer
# Store imported modules as instance attributes
self.get_default_builder = get_default_builder