Skip to content

Commit

Permalink
minimize diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dorschw committed Aug 5, 2024
1 parent 9e257a5 commit 00793d6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/towncrier/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ def _main(compare_with: str | None, directory: str | None, config: str | None) -


def __main(
comparewith: str | None,
directory: str | None,
config_path: str | None,
comparewith: str | None, directory: str | None, config_path: str | None
) -> None:
base_directory, config = load_config_from_options(directory, config_path)

Expand Down Expand Up @@ -104,11 +102,7 @@ def __main(
click.echo("----")

# This will fail if any fragment files have an invalid name:
all_fragment_files = find_fragments(
base_directory,
config,
strict=True,
)[1]
all_fragment_files = find_fragments(base_directory, config, strict=True)[1]

news_file = os.path.normpath(os.path.join(base_directory, config.filename))
if news_file in files:
Expand Down

0 comments on commit 00793d6

Please sign in to comment.