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

sty: Address ruff complaints #64

Merged
merged 1 commit into from
Jan 23, 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
5 changes: 4 additions & 1 deletion src/nifreeze/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def __init__(self, mask=None, **kwargs):

# Setup brain mask
if mask is None:
warn("No mask provided; consider using a mask to avoid issues in model optimization.")
warn(
"No mask provided; consider using a mask to avoid issues in model optimization.",
stacklevel=2,
)

self._mask = mask

Expand Down
3 changes: 2 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
terminalreporter.ensure_newline()
terminalreporter.section("Werrors", sep="=", red=True, bold=True)
terminalreporter.line(
f"Warnings as errors: Activated.\n{len(have_warnings)} warnings were raised and treated as errors.\n"
"Warnings as errors: Activated.\n"
f"{len(have_warnings)} warnings were raised and treated as errors.\n"
)
Loading