Skip to content

Commit dc6e297

Browse files
committed
Make towncrier reject invalid fragment suffixes
1 parent 0043cba commit dc6e297

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ issue_format = "#{issue}"
434434
# version such as ``2026.05.18`` underlined with ``-`` matches every
435435
# pre-towncrier entry in CHANGELOG.rst.
436436
underlines = [ "-", "~", "^" ]
437+
# Setting ``ignore`` makes ``towncrier build`` fail on any file in
438+
# the fragment directory whose suffix is not a declared fragment
439+
# type, instead of silently dropping it. Only the listed
440+
# non-fragment files are allowed through.
441+
ignore = [ ".gitkeep" ]
437442
type = [
438443
# A single, unnamed fragment type keeps the assembled output as one
439444
# flat bullet list, matching the historical changelog (which never

0 commit comments

Comments
 (0)