diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03dad61..dc46606 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: exclude: ^src/pdm/backend/_vendor repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.7.2' + rev: 'v0.8.1' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] diff --git a/src/pdm/backend/hooks/version/scm.py b/src/pdm/backend/hooks/version/scm.py index 481313b..1f496f4 100644 --- a/src/pdm/backend/hooks/version/scm.py +++ b/src/pdm/backend/hooks/version/scm.py @@ -268,7 +268,7 @@ def _bump_regex(version: str) -> str: match = re.match(r"(.*?)(\d+)$", version) assert match is not None prefix, tail = match.groups() - return "%s%d" % (prefix, int(tail) + 1) + return f"{prefix}{int(tail) + 1}" def hg_parse_version(root: StrPath, config: Config) -> SCMVersion | None: