Skip to content

Commit

Permalink
STYLE: Use double quotes instead of single quotes
Browse files Browse the repository at this point in the history
Use double quotes instead of single quotes.

Fixes style warnings raised for example in:
https://github.com/nipreps/nireports/actions/runs/12692755852/job/35378867283?pr=158#step:8:22
  • Loading branch information
jhlegarreta committed Jan 9, 2025
1 parent 9ed0153 commit 7447d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nireports/assembler/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def __init__(
}
meta_repl.update({kk: vv for kk, vv in metadata.items() if isinstance(vv, str)})
meta_repl.update(bids_filters)
expr = re.compile(f'{{({"|".join(meta_repl.keys())})}}')
expr = re.compile(f"{{({'|'.join(meta_repl.keys())})}}")

for line in bootstrap_file.read_text().splitlines(keepends=False):
if expr.search(line):
Expand Down
2 changes: 1 addition & 1 deletion nireports/reportlets/modality/dwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def plot_dwi(dataobj, affine, gradient=None, **kwargs):
if gradient is None
else f"""\
$b$={gradient[3].astype(int)}, \
$\\vec{{b}}$ = ({', '.join(str(v) for v in gradient[:3])})"""
$\\vec{{b}}$ = ({", ".join(str(v) for v in gradient[:3])})"""
),
**kwargs,
)
Expand Down

0 comments on commit 7447d39

Please sign in to comment.