diff --git a/src/wurf/semver_selector.py b/src/wurf/semver_selector.py index 309d59b..769bb17 100644 --- a/src/wurf/semver_selector.py +++ b/src/wurf/semver_selector.py @@ -17,6 +17,7 @@ re.VERBOSE, ) + class SemverSelector(object): """ Selects the most recent tag for a semver major version. @@ -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) diff --git a/test/python/test_semver_selector.py b/test/python/test_semver_selector.py index ac4f5a7..f929729 100644 --- a/test/python/test_semver_selector.py +++ b/test/python/test_semver_selector.py @@ -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",