Skip to content

Commit

Permalink
Merge pull request #64 from jhlegarreta/FixStyleIssues
Browse files Browse the repository at this point in the history
sty: Address ruff complaints
  • Loading branch information
effigies authored Jan 23, 2025
2 parents a8b4dd5 + 66f5b63 commit 75d26c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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"
)

0 comments on commit 75d26c6

Please sign in to comment.