Skip to content

Commit 44c1270

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 52a6c31 commit 44c1270

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/extensions/typed_returns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def _process_return(lines: Iterable[str]) -> Generator[str, None, None]:
1313
for line in lines:
1414
if m := re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line):
15-
yield f'-{m["param"]} (:class:`~{m["type"]}`)'
15+
yield f"-{m['param']} (:class:`~{m['type']}`)"
1616
else:
1717
yield line
1818

src/cell_annotator/sample_annotator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def annotate_clusters(self, min_markers: int, expected_marker_genes: dict[str, l
203203
else:
204204
expected_markers_string = ""
205205

206-
actual_markers_all = "\n".join([f'- Cluster {i}: {", ".join(gs)}' for i, gs in self.marker_genes.items()])
206+
actual_markers_all = "\n".join([f"- Cluster {i}: {', '.join(gs)}" for i, gs in self.marker_genes.items()])
207207

208208
# loop over clusters to annotate
209209
logger.debug("Iterating over clusters to annotate.")

src/cell_annotator/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _format_annotation(df: pd.DataFrame, filter_by: str, cell_type_key: str) ->
144144
"""Format the annotation DataFrame by filtering and generating summary strings."""
145145
filtered_df = df[df[cell_type_key] != filter_by]
146146
return "\n".join(
147-
f' - Cluster {index}: {row["marker_genes"]} -> {row["cell_type_harmonized"]}'
147+
f" - Cluster {index}: {row['marker_genes']} -> {row['cell_type_harmonized']}"
148148
for index, row in filtered_df.iterrows()
149149
)
150150

0 commit comments

Comments
 (0)