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

[pre-commit.ci] pre-commit autoupdate #446

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v3.0.1
hooks:
- id: prettier
# Newer versions of node don't work on systems that have an older version of GLIBC
Expand All @@ -26,7 +26,7 @@ repos:
language_version: "17.9.1"
exclude: '^\.conda'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.281
rev: v0.0.284
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
17 changes: 4 additions & 13 deletions src/scirpy/io/_tracerlib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,26 +368,17 @@
if not self.has_D_segment:
V_segment = self.summary[0]
J_segment = self.summary[1]
segments_string = "V segment:\t{V_segment}\n" "J segment:\t{J_segment}\n".format(
V_segment=V_segment, J_segment=J_segment
)
segments_string = f"V segment:\t{V_segment}\n" f"J segment:\t{J_segment}\n"

Check warning on line 371 in src/scirpy/io/_tracerlib/core.py

View check run for this annotation

Codecov / codecov/patch

src/scirpy/io/_tracerlib/core.py#L371

Added line #L371 was not covered by tests
else:
V_segment = self.summary[0]
D_segment = self.summary[1]
J_segment = self.summary[2]
segments_string = "V segment:\t{V_segment}\nD segment:\t{D_segment}\n" "J segment:\t{J_segment}\n".format(
V_segment=V_segment, D_segment=D_segment, J_segment=J_segment
)
segments_string = f"V segment:\t{V_segment}\nD segment:\t{D_segment}\n" f"J segment:\t{J_segment}\n"

Check warning on line 376 in src/scirpy/io/_tracerlib/core.py

View check run for this annotation

Codecov / codecov/patch

src/scirpy/io/_tracerlib/core.py#L376

Added line #L376 was not covered by tests
summary_string += segments_string
summary_string += f"ID:\t{self.identifier}\n"
summary_string += (
"TPM:\t{TPM}\nProductive:\t{productive}\nStop codon:"
"\t{stop_codon}\nIn frame:\t{in_frame}\n".format(
TPM=self.TPM,
productive=self.productive,
stop_codon=self.stop_codon,
in_frame=self.in_frame,
)
f"TPM:\t{self.TPM}\nProductive:\t{self.productive}\nStop codon:"
f"\t{self.stop_codon}\nIn frame:\t{self.in_frame}\n"
)

# lowercase CDR3 sequences if non-productive
Expand Down
4 changes: 2 additions & 2 deletions src/scirpy/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ def deprecated(message):
def deprecated_decorator(func):
def deprecated_func(*args, **kwargs):
warnings.warn(
"{} is a deprecated function and will be removed in a "
"future version of scirpy. {}".format(func.__name__, message),
f"{func.__name__} is a deprecated function and will be removed in a "
f"future version of scirpy. {message}",
category=FutureWarning,
stacklevel=2,
)
Expand Down
Loading