Apply black to codes

This commit is contained in:
Griatch 2024-04-01 17:51:05 +02:00
parent 870c0f5f75
commit c5a4a34bac
180 changed files with 495 additions and 288 deletions

View file

@ -24,6 +24,7 @@ Common examples of uses of Scripts:
- Give the account/object a time-limited bonus/effect
"""
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.db import models

View file

@ -10,6 +10,7 @@ functionality:
an action whenever that Attribute *changes* for whatever reason.
"""
import inspect
from collections import defaultdict

View file

@ -5,6 +5,7 @@ added to all game objects. You access it through the property
`scripts` on the game object.
"""
from django.utils.translation import gettext as _
from evennia.scripts.models import ScriptDB

View file

@ -205,7 +205,6 @@ class TaskHandlerTask:
class TaskHandler:
"""A light singleton wrapper allowing to access permanent tasks.
When `utils.delay` is called, the task handler is used to create

View file

@ -6,6 +6,8 @@ Unit tests for the scripts package
from collections import defaultdict
from unittest import TestCase, mock
from parameterized import parameterized
from evennia import DefaultScript
from evennia.objects.objects import DefaultObject
from evennia.scripts.manager import ScriptDBManager
@ -17,7 +19,6 @@ from evennia.scripts.tickerhandler import TickerHandler
from evennia.utils.create import create_script
from evennia.utils.dbserialize import dbserialize
from evennia.utils.test_resources import BaseEvenniaTest, EvenniaTest
from parameterized import parameterized
class TestScript(BaseEvenniaTest):

View file

@ -65,6 +65,7 @@ a custom handler one can make a custom `AT_STARTSTOP_MODULE` entry to
call the handler's `save()` and `restore()` methods when the server reboots.
"""
import inspect
from django.core.exceptions import ObjectDoesNotExist