@@ -355,45 +355,75 @@ directory = "changelog/"
355
355
title_format = " pytest {version} ({project_date})"
356
356
template = " changelog/_template.rst"
357
357
358
- [[tool .towncrier .type ]]
359
- directory = " breaking"
360
- name = " Breaking Changes"
361
- showcontent = true
358
+ # NOTE: The types are declared because:
359
+ # NOTE: - there is no mechanism to override just the value of
360
+ # NOTE: `tool.towncrier.type.misc.showcontent`;
361
+ # NOTE: - and, we want to declare extra non-default types for
362
+ # NOTE: clarity and flexibility.
362
363
363
- [[tool .towncrier .type ]]
364
- directory = " deprecation"
365
- name = " Deprecations"
366
- showcontent = true
364
+ [[tool .towncrier .type ]]
365
+ # When something public gets removed in a breaking way. Could be
366
+ # deprecated in an earlier release.
367
+ directory = " breaking"
368
+ name = " Removals and backward incompatible breaking changes"
369
+ showcontent = true
367
370
368
- [[tool .towncrier .type ]]
369
- directory = " feature"
370
- name = " Features"
371
- showcontent = true
371
+ [[tool .towncrier .type ]]
372
+ # Declarations of future API removals and breaking changes in behavior.
373
+ directory = " deprecation"
374
+ name = " Deprecations (removal in next major release)"
375
+ showcontent = true
372
376
373
- [[tool .towncrier .type ]]
374
- directory = " improvement"
375
- name = " Improvements"
376
- showcontent = true
377
+ [[tool .towncrier .type ]]
378
+ # New behaviors, public APIs. That sort of stuff.
379
+ directory = " feature"
380
+ name = " New features"
381
+ showcontent = true
377
382
378
- [[tool .towncrier .type ]]
379
- directory = " bugfix"
380
- name = " Bug Fixes"
381
- showcontent = true
383
+ [[tool .towncrier .type ]]
384
+ # New behaviors in existing features.
385
+ directory = " improvement"
386
+ name = " Improvements in existing functionality"
387
+ showcontent = true
382
388
383
- [[tool .towncrier .type ]]
384
- directory = " vendor"
385
- name = " Vendored Libraries"
386
- showcontent = true
389
+ [[tool .towncrier .type ]]
390
+ # Something we deemed an improper undesired behavior that got corrected
391
+ # in the release to match pre-agreed expectations.
392
+ directory = " bugfix"
393
+ name = " Bug fixes"
394
+ showcontent = true
387
395
388
- [[tool .towncrier .type ]]
389
- directory = " doc"
390
- name = " Improved Documentation"
391
- showcontent = true
396
+ [[tool .towncrier .type ]]
397
+ # Updates regarding bundling dependencies.
398
+ directory = " vendor"
399
+ name = " Vendored libraries"
400
+ showcontent = true
392
401
393
- [[tool .towncrier .type ]]
394
- directory = " trivial"
395
- name = " Trivial/Internal Changes"
396
- showcontent = true
402
+ [[tool .towncrier .type ]]
403
+ # Notable updates to the documentation structure or build process.
404
+ directory = " doc"
405
+ name = " Improved documentation"
406
+ showcontent = true
407
+
408
+ [[tool .towncrier .type ]]
409
+ # Notes for downstreams about unobvious side effects and tooling. Changes
410
+ # in the test invocation considerations and runtime assumptions.
411
+ directory = " packaging"
412
+ name = " Packaging updates and notes for downstreams"
413
+ showcontent = true
414
+
415
+ [[tool .towncrier .type ]]
416
+ # Stuff that affects the contributor experience. e.g. Running tests,
417
+ # building the docs, setting up the development environment.
418
+ directory = " contrib"
419
+ name = " Contributor-facing changes"
420
+ showcontent = true
421
+
422
+ [[tool .towncrier .type ]]
423
+ # Changes that are hard to assign to any of the above categories.
424
+ directory = " misc"
425
+ name = " Miscellaneous internal changes"
426
+ showcontent = true
397
427
398
428
[tool .mypy ]
399
429
files = [" src" , " testing" , " scripts" ]
0 commit comments