Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 21, 2024
1 parent 72c88b6 commit 6f02429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dolphin scripts/Entrance Randomizer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
from lib.constants import * # noqa: F403
from lib.constants import __version__
from lib.entrance_rando import (
_transition_infos_dict_rando,
CLOSED_DOOR_EXITS,
DISABLED_TRANSITIONS,
NO_CONNECTION_FOUND_ERROR,
_transition_infos_dict_rando,

Check failure on line 26 in Dolphin scripts/Entrance Randomizer/__main__.py

View workflow job for this annotation

GitHub Actions / Run pyright

"_transition_infos_dict_rando" is private and used outside of the module in which it is declared (reportPrivateUsage)
bypassed_exits,
highjack_transition_rando,
manually_disabled_transitions,
Expand Down
2 changes: 1 addition & 1 deletion Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def set_linked_transitions():
connect_the_first_levels(closed_door_levels)

making_choices_for_levels(
len(closed_door_levels), # we already did the closed_door_levels
len(closed_door_levels), # we already did the closed_door_levels
level_list,
)

Expand Down
8 changes: 4 additions & 4 deletions Dolphin scripts/Entrance Randomizer/lib/graph_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from lib.constants import * # noqa: F403
from lib.constants import __version__
from lib.entrance_rando import _transition_infos_dict_rando, Outpost
from lib.entrance_rando import Outpost, _transition_infos_dict_rando

Check failure on line 9 in Dolphin scripts/Entrance Randomizer/lib/graph_creation.py

View workflow job for this annotation

GitHub Actions / Run pyright

"_transition_infos_dict_rando" is private and used outside of the module in which it is declared (reportPrivateUsage)
from lib.types_ import SeedType


Expand Down Expand Up @@ -177,11 +177,11 @@ def create_edges(
if starting_area == LevelCRC.BETA_VOLCANO:
connections_one_way.append((
(LevelCRC.BETA_VOLCANO, LevelCRC.JUNGLE_CANYON),
(LevelCRC.BETA_VOLCANO, LevelCRC.JUNGLE_CANYON)
(LevelCRC.BETA_VOLCANO, LevelCRC.JUNGLE_CANYON),
))
connections_one_way.append((
(LevelCRC.BETA_VOLCANO, LevelCRC.PLANE_COCKPIT),
(LevelCRC.BETA_VOLCANO, LevelCRC.PLANE_COCKPIT)
(LevelCRC.BETA_VOLCANO, LevelCRC.PLANE_COCKPIT),
))

output_text = ""
Expand Down Expand Up @@ -234,7 +234,7 @@ def create_graphml(
+ '<graphml><graph id="Graph" uidGraph="1" uidEdge="1">\n'
+ create_vertices(all_transitions, starting_area)
+ create_edges(
all_transitions, manually_disabled_transitions, closed_door_exits, starting_area
all_transitions, manually_disabled_transitions, closed_door_exits, starting_area,
)
+ "</graph></graphml>"
)
Expand Down

0 comments on commit 6f02429

Please sign in to comment.