Skip to content

Commit

Permalink
STYLE: Conform to newest ruff style
Browse files Browse the repository at this point in the history
Conform to newers `ruff` style following the errors reported in:
https://github.com/nipreps/nifreeze/actions/runs/12759269476/job/35562740378?pr=42
  • Loading branch information
jhlegarreta committed Jan 14, 2025
1 parent 6b36275 commit de0bb99
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .maint/update_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def zenodo(
misses = set(miss_creators).intersection(miss_contributors)
if misses:
print(
"Some people made commits, but are missing in .maint/ " f"files: {', '.join(misses)}",
f"Some people made commits, but are missing in .maint/ files: {', '.join(misses)}",
file=sys.stderr,
)

Expand Down Expand Up @@ -268,7 +268,7 @@ def _aslist(value):

if misses:
print(
"Some people made commits, but are missing in .maint/ " f"files: {', '.join(misses)}",
f"Some people made commits, but are missing in .maint/ files: {', '.join(misses)}",
file=sys.stderr,
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/optimize_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def train_coro(
f"Avg. p95 initial error: {np.mean(start):0.2f} mm."
)
if verbose:
logger.info(f"\n\nParameters:\n{align_kwargs}" f"\n\nConversions folder: {tmp_folder}.")
logger.info(f"\n\nParameters:\n{align_kwargs}\n\nConversions folder: {tmp_folder}.")

return error

Expand Down
4 changes: 2 additions & 2 deletions src/nifreeze/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
def pytest_report_header(config):
return f"""\
TEST_DATA_HOME={test_data_env}.
TEST_OUTPUT_DIR={test_output_dir or '<unset> (output files will be discarded)'}.
TEST_WORK_DIR={test_workdir or '<unset> (intermediate files will be discarded)'}.
TEST_OUTPUT_DIR={test_output_dir or "<unset> (output files will be discarded)"}.
TEST_WORK_DIR={test_workdir or "<unset> (intermediate files will be discarded)"}.
"""


Expand Down
2 changes: 1 addition & 1 deletion src/nifreeze/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def estimate(
} | iter_kwargs
iter_kwargs["size"] = len(data)

iterfunc = getattr(iterators, f'{iter_kwargs.pop("strategy", "random")}_iterator')
iterfunc = getattr(iterators, f"{iter_kwargs.pop('strategy', 'random')}_iterator")
index_order = list(iterfunc(**iter_kwargs))

align_kwargs = align_kwargs or {}
Expand Down
4 changes: 2 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
def pytest_report_header(config):
return f"""\
TEST_DATA_HOME={test_data_env}.
TEST_OUTPUT_DIR={test_output_dir or '<unset> (output files will be discarded)'}.
TEST_WORK_DIR={test_workdir or '<unset> (intermediate files will be discarded)'}.
TEST_OUTPUT_DIR={test_output_dir or "<unset> (output files will be discarded)"}.
TEST_WORK_DIR={test_workdir or "<unset> (intermediate files will be discarded)"}.
"""


Expand Down

0 comments on commit de0bb99

Please sign in to comment.