Skip to content

Commit cc194cf

Browse files
renovate[bot]Copilotwatermarkhu
authored
build(deps): update dependency ruff to ~=0.15.0 (#145)
* build(deps): update dependency ruff to ~=0.15.0 * [WIP] Fix type checker errors in branch (#146) * Initial plan * Fix type checker errors by removing pyproject.toml and unused type: ignore comments Co-authored-by: watermarkhu <18556882+watermarkhu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: watermarkhu <18556882+watermarkhu@users.noreply.github.com> * ruff format --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: watermarkhu <18556882+watermarkhu@users.noreply.github.com> Co-authored-by: Mark Shui Hu <watermarkhu@gmail.com>
1 parent 3bccc14 commit cc194cf

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pygments = { git = "https://github.com/watermarkhu/pygments", branch = "matlab"
4242
dev = [
4343
"ty~=0.0.1a29",
4444
"prek>=0.2.19",
45-
"ruff~=0.14.0",
45+
"ruff~=0.15.0",
4646
"pydantic~=2.10",
4747
"pytest~=9.0.0",
4848
"pytest-cov~=7.0.0",
@@ -106,7 +106,7 @@ format-command = "ruff format --config pyproject.toml --stdin-filename {filename
106106
default-flags=["create", "trim"]
107107

108108
[tool.ty.src]
109-
include = ["src", "pyproject.toml"]
109+
include = ["src"]
110110
exclude = ["test"]
111111

112112
[tool.hatch.metadata]

src/mkdocstrings_handlers/matlab/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -793,10 +793,10 @@ def from_data(cls, **data: Any) -> Self:
793793

794794

795795
@dataclass(frozen=True, kw_only=True)
796-
class MatlabOptions(MatlabInputOptions): # type: ignore[override,unused-ignore]
796+
class MatlabOptions(MatlabInputOptions):
797797
"""Final options passed as template context."""
798798

799-
filters: list[tuple[re.Pattern, bool]] = field(default_factory=list) # type: ignore[assignment]
799+
filters: list[tuple[re.Pattern, bool]] = field(default_factory=list)
800800
"""A list of filters applied to filter objects based on their name."""
801801

802802
summary: SummaryOption = field(default_factory=SummaryOption)
@@ -887,8 +887,8 @@ def from_data(cls, **data: Any) -> Self:
887887

888888

889889
@dataclass(frozen=True, kw_only=True)
890-
class MatlabConfig(MatlabInputConfig): # type: ignore[override,unused-ignore]
890+
class MatlabConfig(MatlabInputConfig):
891891
"""MATLAB handler configuration."""
892892

893-
inventories: list[Inventory] = field(default_factory=list) # type: ignore[assignment]
894-
options: dict[str, Any] = field(default_factory=dict) # type: ignore[assignment]
893+
inventories: list[Inventory] = field(default_factory=list)
894+
options: dict[str, Any] = field(default_factory=dict)

src/mkdocstrings_handlers/matlab/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def update_env(self, config: Any) -> None: # noqa: ARG002
191191
rendering.do_as_inheritance_diagram_section
192192
)
193193
self.env.globals["AutorefsHook"] = rendering.AutorefsHook
194-
self.env.tests["existing_template"] = (
195-
lambda template_name: template_name in self.env.list_templates()
194+
self.env.tests["existing_template"] = lambda template_name: (
195+
template_name in self.env.list_templates()
196196
)
197197
# The following is required since in MATLAB there is a concept called namespace
198198
# This is used as a variable in Jinja templates and would overwrite the namespace macro

src/mkdocstrings_handlers/matlab/rendering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def _parents(obj: Alias) -> set[str]:
328328
Returns:
329329
A set of parent path strings.
330330
"""
331-
parent: Object | Alias = obj.parent # type: ignore[assignment]
331+
parent: Object | Alias = obj.parent
332332
parents = {parent.path}
333333
while parent.parent:
334334
parent = parent.parent

0 commit comments

Comments
 (0)