@@ -175,11 +175,8 @@ def test_file_providers(
175
175
@pytest .mark .parametrize (
176
176
"tag_format,tag,expected_version" ,
177
177
(
178
- # If tag_format is None or $version, version_scheme.parser is used.
178
+ # If tag_format is $version (the default) , version_scheme.parser is used.
179
179
# Its DEFAULT_VERSION_PARSER allows a v prefix, but matches PEP440 otherwise.
180
- (None , "0.1.0" , "0.1.0" ),
181
- (None , "v0.1.0" , "0.1.0" ),
182
- (None , "no-match-because-version-scheme-is-strict" , "0.0.0" ),
183
180
("$version" , "no-match-because-version-scheme-is-strict" , "0.0.0" ),
184
181
("$version" , "0.1.0" , "0.1.0" ),
185
182
("$version" , "v0.1.0" , "0.1.0" ),
@@ -202,7 +199,7 @@ def test_file_providers(
202
199
)
203
200
@pytest .mark .usefixtures ("tmp_git_project" )
204
201
def test_scm_provider (
205
- config : BaseConfig , tag_format : str | None , tag : str , expected_version : str
202
+ config : BaseConfig , tag_format : str , tag : str , expected_version : str
206
203
):
207
204
create_file_and_commit ("test: fake commit" )
208
205
create_tag (tag )
0 commit comments