Skip to content

Commit

Permalink
👽 Pass posargs to Towncrier's find_fragments
Browse files Browse the repository at this point in the history
This is necessary as a compatibility improvement after the said
function arguments got renamed but the order stayed the same.

Ref: twisted/towncrier#429
  • Loading branch information
q0w authored and webknjaz committed Dec 22, 2022
1 parent 952ea8a commit 7cb2716
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sphinxcontrib/towncrier/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def _lookup_towncrier_fragments( # noqa: WPS210
fragment_directory = None

_fragments, fragment_filenames = find_fragments(
base_directory=str(fragment_base_directory),
fragment_directory=fragment_directory,
definitions=towncrier_config['types'],
sections=towncrier_config['sections'],
str(fragment_base_directory),
towncrier_config['sections'],
fragment_directory,
towncrier_config['types'],
)
return set(fragment_filenames)

Expand Down

0 comments on commit 7cb2716

Please sign in to comment.