Skip to content

Commit

Permalink
Format with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
steinwurf-sofie committed Sep 26, 2024
1 parent eb71b20 commit b7f255a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/wurf/semver_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
re.VERBOSE,
)


class SemverSelector(object):
"""
Selects the most recent tag for a semver major version.
Expand Down Expand Up @@ -90,7 +91,8 @@ def _semver_coerce(self, version):
return None

ver = {
key: 0 if value is None else int(value) for key, value in match.groupdict().items()
key: 0 if value is None else int(value)
for key, value in match.groupdict().items()
}
return self.semver.VersionInfo(**ver)

Expand Down
2 changes: 1 addition & 1 deletion test/python/test_semver_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_semver_selector():
"3.0.0",
"3.0.0-lts.0",
"3.0.0-lts.1",
"backups/3.1.0-lts.0", # Do not match non-toplevel tags.
"backups/3.1.0-lts.0", # Do not match non-toplevel tags.
"4.0.0",
"v4.0.1",
"5.0.0",
Expand Down

0 comments on commit b7f255a

Please sign in to comment.