Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#273)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pre-commit-ci[bot] authored and frostming committed Dec 6, 2024
1 parent ef09b44 commit 4bd3755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/pdm/backend/hooks/version/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4bd3755

Please sign in to comment.