Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(refactor): require keyword-only args in make_dependency_files() #88

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/rapids_dependency_file_generator/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading