mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[CI] Improve automated checks (#2702)
* same stuff, but with some more spurious error supression * fix issue in permissions found in this * fix a few more spurious errors * fix another issue * semi-spurious error fixes * . * formatting * move this to properly log * distutils import + virtualenv * more fixes
This commit is contained in:
@@ -28,6 +28,9 @@ COG = "COG"
|
||||
COMMAND = "COMMAND"
|
||||
GLOBAL = 0
|
||||
|
||||
_OldConfigSchema = Dict[int, Dict[str, Dict[str, Dict[str, Dict[str, List[int]]]]]]
|
||||
_NewConfigSchema = Dict[str, Dict[int, Dict[str, Dict[int, bool]]]]
|
||||
|
||||
# The strings in the schema are constants and should get extracted, but not translated until
|
||||
# runtime.
|
||||
translate = _
|
||||
@@ -625,9 +628,6 @@ class Permissions(commands.Cog):
|
||||
await self.config.custom(COMMAND).set(new_cmd_rules)
|
||||
await self.config.version.set(__version__)
|
||||
|
||||
_OldConfigSchema = Dict[int, Dict[str, Dict[str, Dict[str, Dict[str, List[int]]]]]]
|
||||
_NewConfigSchema = Dict[str, Dict[int, Dict[str, Dict[int, bool]]]]
|
||||
|
||||
@staticmethod
|
||||
def _get_updated_schema(
|
||||
old_config: _OldConfigSchema
|
||||
|
||||
Reference in New Issue
Block a user