Skip to content

Commit 4bd3755

Browse files
pre-commit-ci[bot]frostming
authored andcommitted
[pre-commit.ci] pre-commit autoupdate (#273)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.2...v0.8.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Frost Ming <[email protected]>
1 parent ef09b44 commit 4bd3755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
exclude: ^src/pdm/backend/_vendor
55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: 'v0.7.2'
7+
rev: 'v0.8.1'
88
hooks:
99
- id: ruff
1010
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

src/pdm/backend/hooks/version/scm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _bump_regex(version: str) -> str:
268268
match = re.match(r"(.*?)(\d+)$", version)
269269
assert match is not None
270270
prefix, tail = match.groups()
271-
return "%s%d" % (prefix, int(tail) + 1)
271+
return f"{prefix}{int(tail) + 1}"
272272

273273

274274
def hg_parse_version(root: StrPath, config: Config) -> SCMVersion | None:

0 commit comments

Comments
 (0)