From 156caa54f1441d962202546246dbfa37e8db80a4 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 13 May 2024 13:02:57 -0500 Subject: [PATCH] chore(refactor): require keyword-only args in make_dependency_files() --- src/rapids_dependency_file_generator/_cli.py | 9 ++++++++- .../_rapids_dependency_file_generator.py | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/rapids_dependency_file_generator/_cli.py b/src/rapids_dependency_file_generator/_cli.py index b507f401..3ff424c1 100644 --- a/src/rapids_dependency_file_generator/_cli.py +++ b/src/rapids_dependency_file_generator/_cli.py @@ -148,4 +148,11 @@ def main(argv=None): if args.clean: delete_existing_files(args.clean) - make_dependency_files(parsed_config, file_keys, output, matrix, args.prepend_channels, to_stdout) + make_dependency_files( + parsed_config=parsed_config, + file_keys=file_keys, + output=output, + matrix=matrix, + prepend_channels=args.prepend_channels, + to_stdout=to_stdout, + ) diff --git a/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py b/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py index 724b8ee0..c17f208a 100644 --- a/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py +++ b/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py @@ -312,13 +312,14 @@ def should_use_specific_entry(matrix_combo: dict[str, str], specific_entry_matri def make_dependency_files( + *, parsed_config: _config.Config, file_keys: list[str], output: typing.Union[set[_config.Output], None], matrix: typing.Union[dict[str, list[str]], None], prepend_channels: list[str], to_stdout: bool, -): +) -> None: """Generate dependency files. This function iterates over data parsed from a YAML file conforming to the