@@ -243,7 +243,9 @@ def test_determine_bump_type_patch_mixed() -> None:
243243 assert _determine_bump_type (fragments ) == "patch"
244244
245245
246- def test_version_from_fragments_exact (changelog_dir : Path , config : _config .Configuration ) -> None :
246+ def test_version_from_fragments_exact (
247+ changelog_dir : Path , config : _config .Configuration
248+ ) -> None :
247249 """Test version scheme when exactly on a tag."""
248250 version = ScmVersion (
249251 tag = Version ("1.2.3" ),
@@ -256,7 +258,9 @@ def test_version_from_fragments_exact(changelog_dir: Path, config: _config.Confi
256258 assert result == "1.2.3"
257259
258260
259- def test_version_from_fragments_no_fragments (changelog_dir : Path , config : _config .Configuration ) -> None :
261+ def test_version_from_fragments_no_fragments (
262+ changelog_dir : Path , config : _config .Configuration
263+ ) -> None :
260264 """Test version scheme with no fragments falls back to guess-next-dev."""
261265 version = ScmVersion (
262266 tag = Version ("1.2.3" ),
@@ -270,7 +274,9 @@ def test_version_from_fragments_no_fragments(changelog_dir: Path, config: _confi
270274 assert result .startswith ("1.2.4.dev5" )
271275
272276
273- def test_version_from_fragments_major_bump (changelog_dir : Path , config : _config .Configuration ) -> None :
277+ def test_version_from_fragments_major_bump (
278+ changelog_dir : Path , config : _config .Configuration
279+ ) -> None :
274280 """Test version scheme with removal fragments (major bump)."""
275281 (changelog_dir / "1.removal.md" ).write_text ("Remove old API" )
276282
@@ -285,7 +291,9 @@ def test_version_from_fragments_major_bump(changelog_dir: Path, config: _config.
285291 assert result .startswith ("2.0.0.dev5" )
286292
287293
288- def test_version_from_fragments_minor_bump (changelog_dir : Path , config : _config .Configuration ) -> None :
294+ def test_version_from_fragments_minor_bump (
295+ changelog_dir : Path , config : _config .Configuration
296+ ) -> None :
289297 """Test version scheme with feature fragments (minor bump)."""
290298 (changelog_dir / "1.feature.md" ).write_text ("Add new feature" )
291299
@@ -300,7 +308,9 @@ def test_version_from_fragments_minor_bump(changelog_dir: Path, config: _config.
300308 assert result .startswith ("1.3.0.dev5" )
301309
302310
303- def test_version_from_fragments_patch_bump (changelog_dir : Path , config : _config .Configuration ) -> None :
311+ def test_version_from_fragments_patch_bump (
312+ changelog_dir : Path , config : _config .Configuration
313+ ) -> None :
304314 """Test version scheme with bugfix fragments (patch bump)."""
305315 (changelog_dir / "1.bugfix.md" ).write_text ("Fix bug" )
306316
@@ -315,7 +325,9 @@ def test_version_from_fragments_patch_bump(changelog_dir: Path, config: _config.
315325 assert result .startswith ("1.2.4.dev5" )
316326
317327
318- def test_version_from_fragments_precedence (changelog_dir : Path , config : _config .Configuration ) -> None :
328+ def test_version_from_fragments_precedence (
329+ changelog_dir : Path , config : _config .Configuration
330+ ) -> None :
319331 """Test that removal > feature > bugfix precedence works."""
320332 # Add all three types - removal should win
321333 (changelog_dir / "1.removal.md" ).write_text ("Remove API" )
@@ -334,7 +346,9 @@ def test_version_from_fragments_precedence(changelog_dir: Path, config: _config.
334346 assert result .startswith ("2.0.0.dev5" )
335347
336348
337- def test_version_from_fragments_minor_over_patch (changelog_dir : Path , config : _config .Configuration ) -> None :
349+ def test_version_from_fragments_minor_over_patch (
350+ changelog_dir : Path , config : _config .Configuration
351+ ) -> None :
338352 """Test that feature takes precedence over bugfix."""
339353 (changelog_dir / "1.feature.md" ).write_text ("Add feature" )
340354 (changelog_dir / "2.bugfix.md" ).write_text ("Fix bug" )
@@ -351,7 +365,9 @@ def test_version_from_fragments_minor_over_patch(changelog_dir: Path, config: _c
351365 assert result .startswith ("1.3.0.dev5" )
352366
353367
354- def test_version_from_fragments_deprecation_is_minor (changelog_dir : Path , config : _config .Configuration ) -> None :
368+ def test_version_from_fragments_deprecation_is_minor (
369+ changelog_dir : Path , config : _config .Configuration
370+ ) -> None :
355371 """Test that deprecation triggers a minor bump."""
356372 (changelog_dir / "1.deprecation.md" ).write_text ("Deprecate method" )
357373
@@ -366,7 +382,9 @@ def test_version_from_fragments_deprecation_is_minor(changelog_dir: Path, config
366382 assert result .startswith ("1.3.0.dev5" )
367383
368384
369- def test_version_from_fragments_doc_is_patch (changelog_dir : Path , config : _config .Configuration ) -> None :
385+ def test_version_from_fragments_doc_is_patch (
386+ changelog_dir : Path , config : _config .Configuration
387+ ) -> None :
370388 """Test that doc changes trigger a patch bump."""
371389 (changelog_dir / "1.doc.md" ).write_text ("Update docs" )
372390
@@ -381,7 +399,9 @@ def test_version_from_fragments_doc_is_patch(changelog_dir: Path, config: _confi
381399 assert result .startswith ("1.2.4.dev5" )
382400
383401
384- def test_version_from_fragments_misc_is_patch (changelog_dir : Path , config : _config .Configuration ) -> None :
402+ def test_version_from_fragments_misc_is_patch (
403+ changelog_dir : Path , config : _config .Configuration
404+ ) -> None :
385405 """Test that misc changes trigger a patch bump."""
386406 (changelog_dir / "1.misc.md" ).write_text ("Refactor" )
387407
@@ -396,7 +416,9 @@ def test_version_from_fragments_misc_is_patch(changelog_dir: Path, config: _conf
396416 assert result .startswith ("1.2.4.dev5" )
397417
398418
399- def test_version_from_fragments_major_from_0_x (changelog_dir : Path , config : _config .Configuration ) -> None :
419+ def test_version_from_fragments_major_from_0_x (
420+ changelog_dir : Path , config : _config .Configuration
421+ ) -> None :
400422 """Test major bump from 0.x version."""
401423 (changelog_dir / "1.removal.md" ).write_text ("Remove API" )
402424
@@ -411,7 +433,9 @@ def test_version_from_fragments_major_from_0_x(changelog_dir: Path, config: _con
411433 assert result .startswith ("1.0.0.dev5" )
412434
413435
414- def test_version_from_fragments_minor_from_0_x (changelog_dir : Path , config : _config .Configuration ) -> None :
436+ def test_version_from_fragments_minor_from_0_x (
437+ changelog_dir : Path , config : _config .Configuration
438+ ) -> None :
415439 """Test minor bump from 0.x version."""
416440 (changelog_dir / "1.feature.md" ).write_text ("Add feature" )
417441
@@ -426,7 +450,9 @@ def test_version_from_fragments_minor_from_0_x(changelog_dir: Path, config: _con
426450 assert result .startswith ("0.6.0.dev5" )
427451
428452
429- def test_version_from_fragments_missing_changelog_dir (config : _config .Configuration ) -> None :
453+ def test_version_from_fragments_missing_changelog_dir (
454+ config : _config .Configuration ,
455+ ) -> None :
430456 """Test version scheme when changelog.d directory doesn't exist."""
431457 version = ScmVersion (
432458 tag = Version ("1.2.3" ),
@@ -440,7 +466,9 @@ def test_version_from_fragments_missing_changelog_dir(config: _config.Configurat
440466 assert result .startswith ("1.2.4.dev5" )
441467
442468
443- def test_version_from_fragments_dirty (changelog_dir : Path , config : _config .Configuration ) -> None :
469+ def test_version_from_fragments_dirty (
470+ changelog_dir : Path , config : _config .Configuration
471+ ) -> None :
444472 """Test version scheme with dirty working directory."""
445473 (changelog_dir / "1.feature.md" ).write_text ("Add feature" )
446474
0 commit comments