Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
jswelling committed May 2, 2024
1 parent 119c109 commit a542752
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_semantic_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@


def test_plugin_semantic_versions():
plugin_dir = (Path(__file__).parent.parent
/ "src" / "ingest_validation_tests")
plugin_dir = Path(__file__).parent.parent / "src" / "ingest_validation_tests"
fb_regex = re.compile(FALLBACK_REGEX)
for cls in validation_class_iter(plugin_dir):
try:
_ = semantic_version.Version(cls.version)
except ValueError:
if not fb_regex.match(cls.version):
assert False, (f"The plugin {cls.__name__} has version string"
f" {cls.version}, which is not a valid semantic"
" version")
assert False, (
f"The plugin {cls.__name__} has version string"
f" {cls.version}, which is not a valid semantic"
" version"
)

0 comments on commit a542752

Please sign in to comment.