Skip to content

Tidy up the last few Ruff problems in deploy.py#157

Open
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:deploy-minor-ruff
Open

Tidy up the last few Ruff problems in deploy.py#157
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:deploy-minor-ruff

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

No description provided.

@rswarbrick
Copy link
Copy Markdown
Contributor Author

Note: The import line at the top of the file actually also appears in #154, but that's the only merge conflict - the PRs can land in either order.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
weight = 10

def __init__(self, run_items, sim_cfg) -> None:
def __init__(self, run_items: list[RunTest], sim_cfg: FlowCfg) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: ideally this would be

Suggested change
def __init__(self, run_items: list[RunTest], sim_cfg: FlowCfg) -> None:
def __init__(self, run_items: Iterable[RunTest], sim_cfg: FlowCfg) -> None:

and then later down we would do:

-        self.dependencies += run_items
+        self.dependencies.extend(run_items)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants