@@ -396,17 +396,17 @@ def git_repo_with_tags(tmp_path: Path) -> Path:
396396 ["git" , "tag" , "v0.2.0" ], cwd = tmp_path , capture_output = True , check = True
397397 )
398398
399- # Add a prerelease tag
400- (tmp_path / "test.txt" ).write_text ("v0.3.0rc1 " )
399+ # Add a prerelease tag (dash format matches our git tag convention)
400+ (tmp_path / "test.txt" ).write_text ("v0.3.0-rc1 " )
401401 subprocess .run (["git" , "add" , "." ], cwd = tmp_path , capture_output = True , check = True )
402402 subprocess .run (
403- ["git" , "commit" , "-m" , "v0.3.0rc1 " ],
403+ ["git" , "commit" , "-m" , "v0.3.0-rc1 " ],
404404 cwd = tmp_path ,
405405 capture_output = True ,
406406 check = True ,
407407 )
408408 subprocess .run (
409- ["git" , "tag" , "v0.3.0rc1 " ], cwd = tmp_path , capture_output = True , check = True
409+ ["git" , "tag" , "v0.3.0-rc1 " ], cwd = tmp_path , capture_output = True , check = True
410410 )
411411
412412 # Add another prerelease
@@ -444,7 +444,7 @@ def test_excludes_prereleases_by_default(self, git_repo_with_tags: Path) -> None
444444 versions = get_available_versions (git_repo_with_tags )
445445
446446 # Should NOT contain rc or alpha versions
447- assert "0.3.0rc1 " not in versions
447+ assert "0.3.0-rc1 " not in versions
448448 assert "0.3.0-alpha.1" not in versions
449449
450450 def test_includes_prereleases_when_requested (
@@ -454,7 +454,7 @@ def test_includes_prereleases_when_requested(
454454 versions = get_available_versions (git_repo_with_tags , include_prereleases = True )
455455
456456 # Should contain all versions including prereleases
457- assert "0.3.0rc1 " in versions
457+ assert "0.3.0-rc1 " in versions
458458 assert "0.3.0-alpha.1" in versions
459459 assert "0.2.0" in versions
460460 assert "0.1.0" in versions
@@ -484,7 +484,7 @@ def test_returns_latest_non_prerelease_version(
484484 """Test that latest version is 0.2.0, not a prerelease."""
485485 latest = get_latest_version (git_repo_with_tags )
486486
487- # Should be 0.2.0, NOT 0.3.0rc1 or 0.3.0-alpha.1
487+ # Should be 0.2.0, NOT 0.3.0-rc1 or 0.3.0-alpha.1
488488 assert latest == "0.2.0"
489489
490490 def test_returns_none_for_no_versions (self , git_repo : Path ) -> None :
0 commit comments