Skip to content

Commit cae4163

Browse files
committed
Ruff updates
1 parent aa3a94e commit cae4163

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ lint.isort.known-first-party = [
9999
lint.isort.required-imports = [
100100
"from __future__ import annotations",
101101
]
102-
pydocstyle.convention = "google"
102+
lint.pydocstyle.convention = "google"
103103

104104
[tool.pyproject-fmt]
105105
max_supported_python = "3.13"

src/humanize/number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def scientific(value: NumberOrString, precision: int = 2) -> str:
424424
return _format_not_finite(value)
425425
except (ValueError, TypeError):
426426
return str(value)
427-
fmt = "{:.%se}" % str(int(precision))
427+
fmt = f"{{:.{str(int(precision))}e}}"
428428
n = fmt.format(value)
429429
part1, part2 = n.split("e")
430430
# Remove redundant leading '+' or '0's (preserving the last '0' for 10⁰).

0 commit comments

Comments
 (0)