We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef09b44 commit 4bd3755Copy full SHA for 4bd3755
.pre-commit-config.yaml
@@ -4,7 +4,7 @@ ci:
4
exclude: ^src/pdm/backend/_vendor
5
repos:
6
- repo: https://github.com/astral-sh/ruff-pre-commit
7
- rev: 'v0.7.2'
+ rev: 'v0.8.1'
8
hooks:
9
- id: ruff
10
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
src/pdm/backend/hooks/version/scm.py
@@ -268,7 +268,7 @@ def _bump_regex(version: str) -> str:
268
match = re.match(r"(.*?)(\d+)$", version)
269
assert match is not None
270
prefix, tail = match.groups()
271
- return "%s%d" % (prefix, int(tail) + 1)
+ return f"{prefix}{int(tail) + 1}"
272
273
274
def hg_parse_version(root: StrPath, config: Config) -> SCMVersion | None:
0 commit comments