Skip to content

Commit a4a78f8

Browse files
Merge pull request #3176 from VWS-Python/agent/issue-3175-towncrier-ignore
Make towncrier fail on invalid news fragment suffixes
2 parents 0043cba + dc6e297 commit a4a78f8

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)