Skip to content

Commit

Permalink
Move BaseResource to root to avoid loops
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Oct 14, 2024
1 parent 70b294e commit 8682d77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ select = [
"PLC0208", # iterating over set is also not deterministic, so we shouldn't do that!

"PLE",
"PLR0402", "PLR1701", "PLR1711", "PLR1722", "PLR0206",
"PLR0133", "PLR0124",
"PLR0402", "PLR1711", "PLR1722", "PLR0206", "PLR0133", "PLR0124",
"PLW",
"SIM101",
]
extend-ignore = [
"ISC001", # may cause conflicts with formatter
"PLW2901", # `for` loop variable `key` overwritten by assignment target
]

[tool.ruff.lint.isort]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

import typing

from construct import Construct, Container

from mercury_engine_data_structures.game_check import Game

if typing.TYPE_CHECKING:
import typing_extensions
from construct import Construct, Container

from mercury_engine_data_structures.file_tree_editor import FileTreeEditor
from mercury_engine_data_structures.game_check import Game


class BaseResource:
Expand All @@ -24,7 +22,7 @@ def __init__(self, raw: Container, target_game: Game, editor: FileTreeEditor | N

@classmethod
def construct_class(cls, target_game: Game) -> Construct:
raise NotImplementedError()
raise NotImplementedError

@classmethod
def parse(cls, data: bytes, target_game: Game, editor: FileTreeEditor | None = None) -> typing_extensions.Self:
Expand Down

0 comments on commit 8682d77

Please sign in to comment.