-"""Tests for text2bbcode """
+"""Tests for text2bbcode"""
import mock
from django.test import TestCase
diff --git a/docs/latest/_modules/evennia/contrib/base_systems/godotwebsocket/webclient.html b/docs/latest/_modules/evennia/contrib/base_systems/godotwebsocket/webclient.html
index 73b34a5e9f..31da49071b 100644
--- a/docs/latest/_modules/evennia/contrib/base_systems/godotwebsocket/webclient.html
+++ b/docs/latest/_modules/evennia/contrib/base_systems/godotwebsocket/webclient.html
@@ -157,6 +157,7 @@
[docs]def start_plugin_services(portal):
class GodotWebsocket(WebSocketServerFactory):
"Only here for better naming in logs"
+
pass
factory = GodotWebsocket()
diff --git a/docs/latest/_modules/evennia/contrib/base_systems/ingame_python/utils.html b/docs/latest/_modules/evennia/contrib/base_systems/ingame_python/utils.html
index 8458c7c729..179b6e4042 100644
--- a/docs/latest/_modules/evennia/contrib/base_systems/ingame_python/utils.html
+++ b/docs/latest/_modules/evennia/contrib/base_systems/ingame_python/utils.html
@@ -99,12 +99,15 @@
from django.conf import settings
-
from evennia.scripts.models import ScriptDB
-
from evennia.utils import logger
-
from evennia.contrib.base_systems.custom_gametime import UNITS, gametime_to_realtime
+
from evennia.contrib.base_systems.custom_gametime import (
+
UNITS,
+
gametime_to_realtime,
+
)
from evennia.contrib.base_systems.custom_gametime import (
real_seconds_until as custom_rsu,
)
+
from evennia.scripts.models import ScriptDB
+
from evennia.utils import logger
from evennia.utils.create import create_script
from evennia.utils.gametime import real_seconds_until as standard_rsu
from evennia.utils.utils import class_from_module
diff --git a/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/reports.html b/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/reports.html
index 7956bc1db4..8d713218cf 100644
--- a/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/reports.html
+++ b/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/reports.html
@@ -124,6 +124,7 @@
"""
from django.conf import settings
+
from evennia import CmdSet
from evennia.commands.default.muxcommand import MuxCommand
from evennia.comms.models import Msg
diff --git a/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/tests.html b/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/tests.html
index 27cf9c46c6..bf9292fd49 100644
--- a/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/tests.html
+++ b/docs/latest/_modules/evennia/contrib/base_systems/ingame_reports/tests.html
@@ -90,9 +90,10 @@
Source code for evennia.contrib.base_systems.ingame_reports.tests
-from unittest.mock import Mock, patch, MagicMock
-from evennia.utils import create
+from unittest.mock import MagicMock, Mock, patch
+
from evennia.comms.models import TempMsg
+from evennia.utils import create
from evennia.utils.test_resources import EvenniaCommandTest
from . import menu, reports
diff --git a/docs/latest/_modules/evennia/contrib/full_systems/evscaperoom/commands.html b/docs/latest/_modules/evennia/contrib/full_systems/evscaperoom/commands.html
index 76d4644589..73b62fe7de 100644
--- a/docs/latest/_modules/evennia/contrib/full_systems/evscaperoom/commands.html
+++ b/docs/latest/_modules/evennia/contrib/full_systems/evscaperoom/commands.html
@@ -121,8 +121,9 @@
import re
-import evennia
from django.conf import settings
+
+import evennia
from evennia import default_cmds, syscmdkeys
from evennia.commands.cmdset import CmdSet
from evennia.commands.command import Command, InterruptCommand
diff --git a/docs/latest/_modules/evennia/contrib/game_systems/achievements/achievements.html b/docs/latest/_modules/evennia/contrib/game_systems/achievements/achievements.html
index 815a208540..17cafd6509 100644
--- a/docs/latest/_modules/evennia/contrib/game_systems/achievements/achievements.html
+++ b/docs/latest/_modules/evennia/contrib/game_systems/achievements/achievements.html
@@ -115,7 +115,7 @@
- name (str): The name of the achievement. This is not the key and does not need to be unique.
- desc (str): The longer description of the achievement. Common uses for this would be flavor text
or hints on how to complete it.
-- category (str): The category of conditions which this achievement tracks. It will most likely be
+- category (str): The category of conditions which this achievement tracks. It will most likely be
an action and you will most likely specify it based on where you're checking from.
e.g. killing 10 rats might have a category of "defeat", which you'd then check from your code
that runs when a player defeats something.
diff --git a/docs/latest/_modules/evennia/contrib/game_systems/clothing/tests.html b/docs/latest/_modules/evennia/contrib/game_systems/clothing/tests.html
index 33aec685ab..2143a8fbf8 100644
--- a/docs/latest/_modules/evennia/contrib/game_systems/clothing/tests.html
+++ b/docs/latest/_modules/evennia/contrib/game_systems/clothing/tests.html
@@ -177,7 +177,9 @@
)
# Test remove command.
- self.call(clothing.CmdRemove(), "", "Usage: remove <worn clothing object>", caller=self.wearer)
+ self.call(
+ clothing.CmdRemove(), "", "Usage: remove <worn clothing object>", caller=self.wearer
+ )
self.call(
clothing.CmdRemove(),
"hat",
diff --git a/docs/latest/_modules/evennia/contrib/game_systems/multidescer/multidescer.html b/docs/latest/_modules/evennia/contrib/game_systems/multidescer/multidescer.html
index 4ef3ce4507..02257117dc 100644
--- a/docs/latest/_modules/evennia/contrib/game_systems/multidescer/multidescer.html
+++ b/docs/latest/_modules/evennia/contrib/game_systems/multidescer/multidescer.html
@@ -133,6 +133,7 @@
[docs]class DescValidateError(ValueError):
"Used for tracebacks from desc systems"
+
pass
diff --git a/docs/latest/_modules/evennia/contrib/game_systems/storage/storage.html b/docs/latest/_modules/evennia/contrib/game_systems/storage/storage.html
index 6dc9ecd964..94e8555a4a 100644
--- a/docs/latest/_modules/evennia/contrib/game_systems/storage/storage.html
+++ b/docs/latest/_modules/evennia/contrib/game_systems/storage/storage.html
@@ -91,9 +91,9 @@
Source code for evennia.contrib.game_systems.storage.storage
from evennia import CmdSet
+from evennia.commands.default.muxcommand import MuxCommand
from evennia.utils import list_to_string
from evennia.utils.search import search_object_by_tag
-from evennia.commands.default.muxcommand import MuxCommand
SHARED_TAG_PREFIX = "shared"
diff --git a/docs/latest/_modules/evennia/contrib/rpg/buffs/buff.html b/docs/latest/_modules/evennia/contrib/rpg/buffs/buff.html
index 24201d6894..82421b2df1 100644
--- a/docs/latest/_modules/evennia/contrib/rpg/buffs/buff.html
+++ b/docs/latest/_modules/evennia/contrib/rpg/buffs/buff.html
@@ -93,7 +93,7 @@
"""
Buffs - Tegiminis 2022
-A buff is a timed object, attached to a game entity, that modifies values, triggers
+A buff is a timed object, attached to a game entity, that modifies values, triggers
code, or both. It is a common design pattern in RPGs, particularly action games.
This contrib gives you a buff handler to apply to your objects, a buff class to extend them,
@@ -117,7 +117,7 @@
### Applying a Buff
-Call the handler `add(BuffClass)` method. This requires a class reference, and also contains a number of
+Call the handler `add(BuffClass)` method. This requires a class reference, and also contains a number of
optional arguments to customize the buff's duration, stacks, and so on.
```python
@@ -128,8 +128,8 @@
### Modify
-Call the handler `check(value, stat)` method wherever you want to see the modified value.
-This will return the value, modified by and relevant buffs on the handler's owner (identified by
+Call the handler `check(value, stat)` method wherever you want to see the modified value.
+This will return the value, modified by and relevant buffs on the handler's owner (identified by
the `stat` string). For example:
```python
@@ -141,7 +141,7 @@
### Trigger
-Call the handler `trigger(triggerstring)` method wherever you want an event call. This
+Call the handler `trigger(triggerstring)` method wherever you want an event call. This
will call the `at_trigger` hook method on all buffs with the relevant trigger.
```python
diff --git a/docs/latest/_modules/evennia/contrib/rpg/traits/tests.html b/docs/latest/_modules/evennia/contrib/rpg/traits/tests.html
index b9b38b2d15..0f8a9be7c9 100644
--- a/docs/latest/_modules/evennia/contrib/rpg/traits/tests.html
+++ b/docs/latest/_modules/evennia/contrib/rpg/traits/tests.html
@@ -101,9 +101,10 @@
from copy import copy
from anything import Something
+from mock import MagicMock, patch
+
from evennia.objects.objects import DefaultCharacter
from evennia.utils.test_resources import BaseEvenniaTestCase, EvenniaTest
-from mock import MagicMock, patch
from . import traits
diff --git a/docs/latest/_modules/evennia/contrib/rpg/traits/traits.html b/docs/latest/_modules/evennia/contrib/rpg/traits/traits.html
index 4eaa31fa5b..d277705f0d 100644
--- a/docs/latest/_modules/evennia/contrib/rpg/traits/traits.html
+++ b/docs/latest/_modules/evennia/contrib/rpg/traits/traits.html
@@ -548,9 +548,15 @@
from time import time
from django.conf import settings
+
from evennia.utils import logger
from evennia.utils.dbserialize import _SaverDict
-from evennia.utils.utils import class_from_module, inherits_from, list_to_string, percent
+from evennia.utils.utils import (
+ class_from_module,
+ inherits_from,
+ list_to_string,
+ percent,
+)
# Available Trait classes.
# This way the user can easily supply their own. Each
diff --git a/docs/latest/_modules/evennia/contrib/tutorials/talking_npc/talking_npc.html b/docs/latest/_modules/evennia/contrib/tutorials/talking_npc/talking_npc.html
index fc75502f5d..f55b9292e3 100644
--- a/docs/latest/_modules/evennia/contrib/tutorials/talking_npc/talking_npc.html
+++ b/docs/latest/_modules/evennia/contrib/tutorials/talking_npc/talking_npc.html
@@ -215,6 +215,7 @@
[docs]class TalkingCmdSet(CmdSet):
"Stores the talk command."
+
key = "talkingcmdset"
[docs] def at_cmdset_creation(self):
diff --git a/docs/latest/_modules/evennia/help/models.html b/docs/latest/_modules/evennia/help/models.html
index ea62711b2a..82e70d5ee5 100644
--- a/docs/latest/_modules/evennia/help/models.html
+++ b/docs/latest/_modules/evennia/help/models.html
@@ -201,6 +201,7 @@
class Meta:
"Define Django meta options"
+
verbose_name = "Help Entry"
verbose_name_plural = "Help Entries"
diff --git a/docs/latest/_modules/evennia/help/utils.html b/docs/latest/_modules/evennia/help/utils.html
index 2dc801835b..5512de5cfd 100644
--- a/docs/latest/_modules/evennia/help/utils.html
+++ b/docs/latest/_modules/evennia/help/utils.html
@@ -103,7 +103,6 @@
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)
@@ -172,12 +171,10 @@
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
diff --git a/docs/latest/_modules/evennia/objects/manager.html b/docs/latest/_modules/evennia/objects/manager.html
index 86e6ddc83c..555778a65b 100644
--- a/docs/latest/_modules/evennia/objects/manager.html
+++ b/docs/latest/_modules/evennia/objects/manager.html
@@ -414,7 +414,7 @@
)
# convert search term to partial-match regex
-
search_regex = r".* ".join(r"\b" + re.escape(word) for word in ostring.split()) + r'.*'
+
search_regex = r".* ".join(r"\b" + re.escape(word) for word in ostring.split()) + r".*"
# do the fuzzy search and return whatever it matches
return (
diff --git a/docs/latest/_modules/evennia/objects/models.html b/docs/latest/_modules/evennia/objects/models.html
index 578e9c059f..7df4a8bb00 100644
--- a/docs/latest/_modules/evennia/objects/models.html
+++ b/docs/latest/_modules/evennia/objects/models.html
@@ -112,6 +112,7 @@
from django.core.exceptions import ObjectDoesNotExist
from django.core.validators import validate_comma_separated_integer_list
from django.db import models
+
from evennia.objects.manager import ObjectDBManager
from evennia.typeclasses.models import TypedObject
from evennia.utils import logger
diff --git a/docs/latest/_modules/evennia/objects/objects.html b/docs/latest/_modules/evennia/objects/objects.html
index a3ff5e338c..97939efb2b 100644
--- a/docs/latest/_modules/evennia/objects/objects.html
+++ b/docs/latest/_modules/evennia/objects/objects.html
@@ -102,10 +102,11 @@
import typing
from collections import defaultdict
-
import evennia
import inflect
from django.conf import settings
from django.utils.translation import gettext as _
+
+
import evennia
from evennia.commands import cmdset
from evennia.commands.cmdsethandler import CmdSetHandler
from evennia.objects.manager import ObjectManager
diff --git a/docs/latest/_modules/evennia/prototypes/prototypes.html b/docs/latest/_modules/evennia/prototypes/prototypes.html
index 1f772b2125..f1b46538e4 100644
--- a/docs/latest/_modules/evennia/prototypes/prototypes.html
+++ b/docs/latest/_modules/evennia/prototypes/prototypes.html
@@ -104,6 +104,7 @@
from django.core.paginator import Paginator
from django.db.models import Q
from django.utils.translation import gettext as _
+
from evennia.locks.lockhandler import check_lockstring, validate_lockstring
from evennia.objects.models import ObjectDB
from evennia.scripts.scripts import DefaultScript
diff --git a/docs/latest/_modules/evennia/scripts/models.html b/docs/latest/_modules/evennia/scripts/models.html
index 4707919686..3e7521ba10 100644
--- a/docs/latest/_modules/evennia/scripts/models.html
+++ b/docs/latest/_modules/evennia/scripts/models.html
@@ -218,6 +218,7 @@
class Meta(object):
"Define Django meta options"
+
verbose_name = "Script"
#
diff --git a/docs/latest/_modules/evennia/scripts/scripthandler.html b/docs/latest/_modules/evennia/scripts/scripthandler.html
index d6d53cbb96..a04fd29c5c 100644
--- a/docs/latest/_modules/evennia/scripts/scripthandler.html
+++ b/docs/latest/_modules/evennia/scripts/scripthandler.html
@@ -99,6 +99,7 @@
"""
from django.utils.translation import gettext as _
+
from evennia.scripts.models import ScriptDB
from evennia.utils import create, logger
diff --git a/docs/latest/_modules/evennia/scripts/scripts.html b/docs/latest/_modules/evennia/scripts/scripts.html
index 1fff1b737a..6ae839a0a7 100644
--- a/docs/latest/_modules/evennia/scripts/scripts.html
+++ b/docs/latest/_modules/evennia/scripts/scripts.html
@@ -98,12 +98,13 @@
"""
from django.utils.translation import gettext as _
+
from twisted.internet.defer import Deferred, maybeDeferred
+
from twisted.internet.task import LoopingCall
+
from evennia.scripts.manager import ScriptManager
from evennia.scripts.models import ScriptDB
from evennia.typeclasses.models import TypeclassBase
from evennia.utils import create, logger
-
from twisted.internet.defer import Deferred, maybeDeferred
-
from twisted.internet.task import LoopingCall
__all__ = ["DefaultScript", "DoNothing", "Store"]
diff --git a/docs/latest/_modules/evennia/scripts/taskhandler.html b/docs/latest/_modules/evennia/scripts/taskhandler.html
index aec7a6fdce..a1dec6f134 100644
--- a/docs/latest/_modules/evennia/scripts/taskhandler.html
+++ b/docs/latest/_modules/evennia/scripts/taskhandler.html
@@ -97,13 +97,14 @@
from datetime import datetime, timedelta
from pickle import PickleError
-
from evennia.server.models import ServerConfig
-
from evennia.utils.dbserialize import dbserialize, dbunserialize
-
from evennia.utils.logger import log_err
from twisted.internet import reactor
from twisted.internet.defer import CancelledError as DefCancelledError
from twisted.internet.task import deferLater
+
from evennia.server.models import ServerConfig
+
from evennia.utils.dbserialize import dbserialize, dbunserialize
+
from evennia.utils.logger import log_err
+
TASK_HANDLER = None
diff --git a/docs/latest/_modules/evennia/scripts/tickerhandler.html b/docs/latest/_modules/evennia/scripts/tickerhandler.html
index ee9a42ae13..47077062d4 100644
--- a/docs/latest/_modules/evennia/scripts/tickerhandler.html
+++ b/docs/latest/_modules/evennia/scripts/tickerhandler.html
@@ -161,12 +161,13 @@
import inspect
from django.core.exceptions import ObjectDoesNotExist
+
from twisted.internet.defer import inlineCallbacks
+
from evennia.scripts.scripts import ExtendedLoopingCall
from evennia.server.models import ServerConfig
from evennia.utils import inherits_from, variable_from_module
from evennia.utils.dbserialize import dbserialize, dbunserialize, pack_dbobj
from evennia.utils.logger import log_err, log_trace
-
from twisted.internet.defer import inlineCallbacks
_GA = object.__getattribute__
_SA = object.__setattr__
diff --git a/docs/latest/_modules/evennia/server/inputfuncs.html b/docs/latest/_modules/evennia/server/inputfuncs.html
index a5458e30cd..f924f28401 100644
--- a/docs/latest/_modules/evennia/server/inputfuncs.html
+++ b/docs/latest/_modules/evennia/server/inputfuncs.html
@@ -116,6 +116,7 @@
from codecs import lookup as codecs_lookup
from django.conf import settings
+
from evennia.accounts.models import AccountDB
from evennia.commands.cmdhandler import cmdhandler
from evennia.utils.logger import log_err
diff --git a/docs/latest/_modules/evennia/server/models.html b/docs/latest/_modules/evennia/server/models.html
index 05bbac386c..561e29afd3 100644
--- a/docs/latest/_modules/evennia/server/models.html
+++ b/docs/latest/_modules/evennia/server/models.html
@@ -202,6 +202,7 @@
class Meta:
"Define Django meta options"
+
verbose_name = "Server Config value"
verbose_name_plural = "Server Config values"
diff --git a/docs/latest/_modules/evennia/server/portal/mssp.html b/docs/latest/_modules/evennia/server/portal/mssp.html
index 6fc39a073c..f5c9a83763 100644
--- a/docs/latest/_modules/evennia/server/portal/mssp.html
+++ b/docs/latest/_modules/evennia/server/portal/mssp.html
@@ -104,6 +104,7 @@
"""
import weakref
+
from django.conf import settings
from evennia.utils import utils
diff --git a/docs/latest/_modules/evennia/server/portal/mxp.html b/docs/latest/_modules/evennia/server/portal/mxp.html
index 63cc2f6c5d..a059b6e5b9 100644
--- a/docs/latest/_modules/evennia/server/portal/mxp.html
+++ b/docs/latest/_modules/evennia/server/portal/mxp.html
@@ -117,7 +117,7 @@
# MXP Telnet option
MXP = bytes([91]) # b"\x5b"
-
MXP_TEMPSECURE = "\x1B[4z"
+
MXP_TEMPSECURE = "\x1b[4z"
MXP_SEND = MXP_TEMPSECURE + '<SEND HREF="\\1">' + "\\2" + MXP_TEMPSECURE + "</SEND>"
MXP_URL = MXP_TEMPSECURE + '<A HREF="\\1">' + "\\2" + MXP_TEMPSECURE + "</A>"
diff --git a/docs/latest/_modules/evennia/server/portal/naws.html b/docs/latest/_modules/evennia/server/portal/naws.html
index 3586f37156..20925d3625 100644
--- a/docs/latest/_modules/evennia/server/portal/naws.html
+++ b/docs/latest/_modules/evennia/server/portal/naws.html
@@ -102,8 +102,8 @@
"""
-
from codecs import encode as codecs_encode
import weakref
+
from codecs import encode as codecs_encode
from django.conf import settings
@@ -178,7 +178,9 @@
width = options[0] + options[1]
self.protocol().protocol_flags["SCREENWIDTH"][0] = int(codecs_encode(width, "hex"), 16)
height = options[2] + options[3]
-
self.protocol().protocol_flags["SCREENHEIGHT"][0] = int(codecs_encode(height, "hex"), 16)
+ self.protocol().protocol_flags["SCREENHEIGHT"][0] = int(
+ codecs_encode(height, "hex"), 16
+ )
diff --git a/docs/latest/_modules/evennia/server/portal/service.html b/docs/latest/_modules/evennia/server/portal/service.html
index e2ba768e8e..6a4e167631 100644
--- a/docs/latest/_modules/evennia/server/portal/service.html
+++ b/docs/latest/_modules/evennia/server/portal/service.html
@@ -315,6 +315,7 @@
class Websocket(WebSocketServerFactory):
"Only here for better naming in logs"
+
pass
factory = Websocket()
diff --git a/docs/latest/_modules/evennia/server/portal/suppress_ga.html b/docs/latest/_modules/evennia/server/portal/suppress_ga.html
index 6ac33a44ff..6d64a644a0 100644
--- a/docs/latest/_modules/evennia/server/portal/suppress_ga.html
+++ b/docs/latest/_modules/evennia/server/portal/suppress_ga.html
@@ -133,9 +133,9 @@
self.protocol = weakref.ref(protocol)
self.protocol().protocol_flags["NOGOAHEAD"] = True
- self.protocol().protocol_flags["NOPROMPTGOAHEAD"] = (
- True # Used to send a GA after a prompt line only, set in TTYPE (per client)
- )
+ self.protocol().protocol_flags[
+ "NOPROMPTGOAHEAD"
+ ] = True # Used to send a GA after a prompt line only, set in TTYPE (per client)
# tell the client that we prefer to suppress GA ...
self.protocol().will(SUPPRESS_GA).addCallbacks(self.will_suppress_ga, self.wont_suppress_ga)
diff --git a/docs/latest/_modules/evennia/server/service.html b/docs/latest/_modules/evennia/server/service.html
index b02d8a6b57..90cc56d91f 100644
--- a/docs/latest/_modules/evennia/server/service.html
+++ b/docs/latest/_modules/evennia/server/service.html
@@ -100,19 +100,20 @@
diff --git a/docs/latest/_modules/evennia/typeclasses/attributes.html b/docs/latest/_modules/evennia/typeclasses/attributes.html
index d3b3156e76..71124fc972 100644
--- a/docs/latest/_modules/evennia/typeclasses/attributes.html
+++ b/docs/latest/_modules/evennia/typeclasses/attributes.html
@@ -109,6 +109,7 @@