Skip to content

Commit

Permalink
versioneer doesn't care about lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Aug 1, 2024
1 parent 1f87417 commit 8b57f75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions q2_vizard/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def git_pieces_from_vcs(
pieces["distance"] = len(out.split()) # total number of commits

# commit date: see ISO-8601 comment in git_versions_from_keywords()
date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip()
date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"],
cwd=root)[0].strip()
# Use only the last line. Previous lines may contain GPG signature
# information.
date = date.splitlines()[-1]
Expand Down Expand Up @@ -468,10 +469,12 @@ def render_pep440_pre(pieces: Dict[str, Any]) -> str:
if pieces["closest-tag"]:
if pieces["distance"]:
# update the post release segment
tag_version, post_version = pep440_split_post(pieces["closest-tag"])
tag_version, post_version = \
pep440_split_post(pieces["closest-tag"])
rendered = tag_version
if post_version is not None:
rendered += ".post%d.dev%d" % (post_version + 1, pieces["distance"])
rendered += ".post%d.dev%d" % (post_version + 1,
pieces["distance"])
else:
rendered += ".post0.dev%d" % (pieces["distance"])
else:
Expand Down

0 comments on commit 8b57f75

Please sign in to comment.