Skip to content
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
8 changes: 4 additions & 4 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ModInfo:
def init_debugpy() -> None:
"""Tries to import and setup debugpy. Does nothing if unable to."""
try:
import debugpy # pyright: ignore[reportMissingImports] # noqa: T100
import debugpy # pyright: ignore[reportMissingImports] # noqa: PLC0415, T100

debugpy.listen( # pyright: ignore[reportUnknownMemberType] # noqa: T100
("localhost", 5678),
Expand All @@ -72,13 +72,13 @@ def init_debugpy() -> None:
)

# Make WrappedArrays resolve the same as lists
from _pydevd_bundle.pydevd_resolver import ( # pyright: ignore[reportMissingImports]
from _pydevd_bundle.pydevd_resolver import ( # pyright: ignore[reportMissingImports] # noqa: PLC0415
tupleResolver, # pyright: ignore[reportUnknownVariableType]
)
from _pydevd_bundle.pydevd_xml import ( # pyright: ignore[reportMissingImports]
from _pydevd_bundle.pydevd_xml import ( # pyright: ignore[reportMissingImports] # noqa: PLC0415
_TYPE_RESOLVE_HANDLER, # pyright: ignore[reportUnknownVariableType]
)
from unrealsdk.unreal import WrappedArray
from unrealsdk.unreal import WrappedArray # noqa: PLC0415

if not _TYPE_RESOLVE_HANDLER._initialized: # pyright: ignore[reportUnknownMemberType]
_TYPE_RESOLVE_HANDLER._initialize() # pyright: ignore[reportUnknownMemberType]
Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/DeprecationHelper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, D103, N999

import functools
import warnings
Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/HookManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, D103, N999

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/KeybindManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N999

import functools
import inspect
Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/ModObjects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, D103, N999

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/NetworkManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, N806, D102, D103, N999
# ruff: noqa: N802, N803, N806, D103, N999

from __future__ import annotations

Expand Down
6 changes: 3 additions & 3 deletions src/legacy_compat/ModMenu/Options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, N803, D102, N999

from abc import ABC, abstractmethod
from collections.abc import Callable, Sequence
Expand Down Expand Up @@ -372,11 +372,11 @@ def on_enter(_: _NestedProxy) -> None:
def custom_command_callback(_: ButtonOption) -> None:
with legacy_compat():
try:
from Mods.Commander import Configurator # type: ignore
from Mods.Commander import Configurator # type: ignore # noqa: PLC0415

Configurator.CustomConfigurator() # type: ignore
except ImportError:
import webbrowser
import webbrowser # noqa: PLC0415

webbrowser.open(
"https://github.com/mopioid/Borderlands-Commander/wiki/Custom-Commands",
Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/ModMenu/SettingsManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, D103, N999

from __future__ import annotations

Expand Down
2 changes: 0 additions & 2 deletions src/legacy_compat/ModMenu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ruff: noqa: N802, N803, D102, D103, N999

from collections.abc import Iterator
from contextlib import contextmanager
from types import ModuleType
Expand Down
2 changes: 1 addition & 1 deletion src/legacy_compat/unrealsdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: N802, N803, D102, D103, N999
# ruff: noqa: N802, N803, D103

import inspect
import re
Expand Down