From 408b6a86f24279f7e61f73644125de69f3ce6c7c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:12:08 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.7...v0.9.10) - [github.com/henriquegemignani/jsonschema-to-typeddict: v1.3 → v1.3.1](https://github.com/henriquegemignani/jsonschema-to-typeddict/compare/v1.3...v1.3.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f2a7f8..c02eb1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,14 +4,14 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.9.7 + rev: v0.9.10 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] - id: ruff-format - repo: https://github.com/henriquegemignani/jsonschema-to-typeddict - rev: v1.3 + rev: v1.3.1 hooks: - id: jsonschema-to-typeddict files: src/mars_patcher/data/schema.json From 353dc708a251b9c125f438eb39841965835a5b73 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:12:14 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mars_patcher/auto_generated_types.py | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/mars_patcher/auto_generated_types.py b/src/mars_patcher/auto_generated_types.py index 52fe684..9d08ef0 100644 --- a/src/mars_patcher/auto_generated_types.py +++ b/src/mars_patcher/auto_generated_types.py @@ -23,7 +23,6 @@ '5', '6' ] - Minimapidkey = typ.Literal[ '0', '1', @@ -37,7 +36,6 @@ '9', '10' ] - Sectorid: typ.TypeAlias = typ.Annotated[int, '1 <= value <= 6'] Shortcutsectorlist: typ.TypeAlias = typ.Annotated[list[Sectorid], 'len() == 6'] Huerotation: typ.TypeAlias = typ.Annotated[int, '0 <= value <= 360'] @@ -64,7 +62,6 @@ 'WaveCoreX', 'Ridley' ] - Validitems = typ.Literal[ 'None', 'Level0', @@ -96,7 +93,6 @@ 'IceTrap', 'InfantMetroid' ] - Validitemsprites = typ.Literal[ 'Empty', 'Missiles', @@ -130,7 +126,6 @@ 'ShinyPowerBombTank', 'InfantMetroid' ] - Validabilities = typ.Literal[ 'Missiles', 'MorphBall', @@ -151,7 +146,6 @@ 'ScrewAttack', 'IceBeam' ] - Validelevatortops = typ.Literal[ 'OperationsDeckTop', 'MainHubToSector1', @@ -164,7 +158,6 @@ 'HabitationDeckTop', 'Sector1ToRestrictedLab' ] - Validelevatorbottoms = typ.Literal[ 'OperationsDeckBottom', 'MainHubBottom', @@ -177,7 +170,6 @@ 'Sector5ToMainHub', 'Sector6ToMainHub' ] - Validlanguages = typ.Literal[ 'JapaneseKanji', 'JapaneseHiragana', @@ -187,8 +179,8 @@ 'Italian', 'Spanish' ] - Messagelanguages: typ.TypeAlias = dict[Validlanguages, str] + class Itemmessages(typ.TypedDict, total=False): Languages: Messagelanguages Centered: bool = True @@ -203,7 +195,6 @@ class BlocklayerItem(typ.TypedDict, total=False): Value: Typeu10 """The value that should be used to edit the room. For backgrounds, this is calculated via `((Row-1) * ColumnsInTileset) + (Column-1)`.""" - Blocklayer: typ.TypeAlias = typ.Annotated[list[BlocklayerItem], 'Unique items'] Hintlocks = typ.Literal[ 'OPEN', @@ -215,8 +206,8 @@ class BlocklayerItem(typ.TypedDict, total=False): 'RED' ] - # Schema entries + class MarsschemaLocationsMajorlocationsItem(typ.TypedDict): Source: Validsources """Valid major locations.""" @@ -272,7 +263,6 @@ class MarsschemaStartinglocation(typ.TypedDict): BlockY: Typeu8 """The Y-coordinate in the room where the player should spawn. If the room contains a save station, then this value will not be taken into consideration.""" - MarsschemaStartingitemsSecuritylevelsItem = typ.Literal[ 0, 1, @@ -333,7 +323,6 @@ class MarsschemaSectorshortcuts(typ.TypedDict): RightAreas: Shortcutsectorlist """Destination areas on the right side of sectors""" - MarsschemaDoorlocksItemLocktype = typ.Literal[ 'Open', 'Level0', @@ -354,7 +343,6 @@ class MarsschemaDoorlocksItem(typ.TypedDict): LockType: MarsschemaDoorlocksItemLocktype """The type of cover on the hatch.""" - MarsschemaPalettesRandomizeKey = typ.Literal[ 'Tilesets', 'Enemies', @@ -373,7 +361,6 @@ class MarsschemaPalettesRandomize(typ.TypedDict, total=False): """The maximum value to use for rotating palette hues. If not specified, the patcher will randomly generate one.""" - MarsschemaPalettesColorspace = typ.Literal[ 'HSV', 'Oklab' @@ -454,7 +441,6 @@ class MarsschemaNavigationtext(typ.TypedDict, total=False): """Assigns the ship specific text.""" - MarsschemaCreditstextItemLinetype = typ.Literal[ 'Blank', 'Blue', @@ -476,7 +462,6 @@ class MarsschemaCreditstextItem(typ.TypedDict, total=False): Centered: bool = True """Centers the text horizontally when true.""" - MarsschemaNavstationlocksKey = typ.Literal[ 'MainDeckWest', 'MainDeckEast', @@ -627,5 +612,4 @@ class Marsschema(typ.TypedDict, total=False): RevealHiddenTiles: bool = False """When enabled, reveals normally hidden blocks that are breakable by upgrades. Hidden pickup tanks are not revealed regardless of this setting.""" - MarsSchema: typ.TypeAlias = Marsschema