Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff update #457

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from mercury_engine_data_structures.formats import Bmsad

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/misc_patches/block_patches.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from mercury_engine_data_structures.formats import Bmsbk

from open_samus_returns_rando.constants import ALL_SCENARIOS
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats.lua import Lua

from open_samus_returns_rando.misc_patches import lua_util
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/misc_patches/credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re

from mercury_engine_data_structures.formats import Txt

from open_samus_returns_rando.patcher_editor import PatcherEditor

_PROJECT_MEMBERS = {
Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/misc_patches/elevators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats.lua import Lua

from open_samus_returns_rando.misc_patches import lua_util
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/misc_patches/final_boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmtun

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/misc_patches/lua_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.file_tree_editor import FileTreeEditor
from mercury_engine_data_structures.formats.lua import Lua

from open_samus_returns_rando.files import files_path, templates_path


Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/pickups/custom_pickups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsmsd

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/pickups/pickup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsmsd, Lua
from mercury_engine_data_structures.formats.bmsmsd import TileType

from open_samus_returns_rando.constants import get_package_name
from open_samus_returns_rando.files import templates_path
from open_samus_returns_rando.logger import LOG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsmsd

from open_samus_returns_rando.patcher_editor import PatcherEditor

SCRIPT_COMPONENT = Container({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from mercury_engine_data_structures.formats import Bmdefs, Bmses, Bmtun

from open_samus_returns_rando.constants import ALL_SCENARIOS
from open_samus_returns_rando.misc_patches import lua_util
from open_samus_returns_rando.patcher_editor import PatcherEditor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsld, Bmsmsd, Lua
from mercury_engine_data_structures.formats.bmsmsd import IconPriority, TileBorders

from open_samus_returns_rando.files import files_path
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsbk

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import typing

from construct import Container, ListContainer # type: ignore[import-untyped]

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from construct import ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsbk, Bmscc, Bmssd, Bmtun

from open_samus_returns_rando.patcher_editor import PatcherEditor

MULTI_ROOM_GAMMAS = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from mercury_engine_data_structures.formats.bmtun import Bmtun

from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down