Skip to content

Commit

Permalink
Run ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Jan 16, 2025
1 parent fa10aed commit ef9da2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/setuptools_scm/_integration/setuptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def version_keyword(
assert isinstance(value, dict), "version_keyword expects a dict or True"
overrides = value

assert (
"dist_name" not in overrides
), "dist_name may not be specified in the setup keyword "
assert "dist_name" not in overrides, (
"dist_name may not be specified in the setup keyword "
)
dist_name: str | None = dist.metadata.name
_log_hookstart("version_keyword", dist)

Expand Down
3 changes: 1 addition & 2 deletions src/setuptools_scm/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@ def guess_next_date_ver(
if tag_date > head_date and match is not None:
# warn on future times
warnings.warn(
f"your previous tag ({tag_date})"
f" is ahead your node date ({head_date})"
f"your previous tag ({tag_date}) is ahead your node date ({head_date})"
)
patch = 0
next_version = "{node_date:{date_fmt}}.{patch}".format(
Expand Down

0 comments on commit ef9da2e

Please sign in to comment.