Skip to content

Update dependency ruff to ^0.11.2 #301

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

Merged
merged 2 commits into from
Mar 31, 2025
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 f_lib/_os_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __new__(cls, *args: object, **kwargs: object) -> OsInfo:

"""
if cls.__instance is None:
cls.__instance = cast(OsInfo, super().__new__(cls, *args, **kwargs))
cls.__instance = cast("OsInfo", super().__new__(cls, *args, **kwargs))
return cls.__instance

@cached_property
Expand Down
2 changes: 1 addition & 1 deletion f_lib/_system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __new__(cls, *args: object, **kwargs: object) -> SystemInfo:

"""
if cls.__instance is None:
cls.__instance = cast(SystemInfo, super().__new__(cls, *args, **kwargs))
cls.__instance = cast("SystemInfo", super().__new__(cls, *args, **kwargs))
return cls.__instance

@cached_property
Expand Down
4 changes: 2 additions & 2 deletions f_lib/mixins/_cli_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def _run_command_capture_output(
stdout=subprocess.PIPE,
universal_newlines=True,
) as proc:
with cast(IO[str], proc.stdout):
for line in cast(IO[str], proc.stdout):
with cast("IO[str]", proc.stdout):
for line in cast("IO[str]", proc.stdout):
print(line, end="") # noqa: T201
output_list.append(line)
# strip any ANSI escape sequences from output
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sphinxcontrib-jquery = "^4.1"

[tool.poetry.group.lint.dependencies]
black = "^25.1.0"
ruff = "^0.9.5"
ruff = "^0.11.2"

[tool.poetry.group.test.dependencies]
pytest = "^8.3.5"
Expand Down
Loading