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(project-create): clean up one ruff PLR0912 and one PLR0913 #772

Merged

Conversation

Nora-Olivia-Ammann
Copy link
Collaborator

No description provided.

@Nora-Olivia-Ammann Nora-Olivia-Ammann self-assigned this Jan 30, 2024
@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title chore(project-create): clean up ruff PLR0912 chore(project-create): clean up one ruff PLR0912 Jan 30, 2024
@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title chore(project-create): clean up one ruff PLR0912 chore(project-create): clean up one ruff PLR0912 and one PLR0913 Jan 30, 2024
Copy link
Collaborator

@jnussbaum jnussbaum left a comment

Choose a reason for hiding this comment

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

This is definitively an improvement, LGTM.
I have made some comments how you could even further improve it.

@Nora-Olivia-Ammann Nora-Olivia-Ammann merged commit 7902840 into main Jan 30, 2024
11 checks passed
@Nora-Olivia-Ammann Nora-Olivia-Ammann deleted the wip/chore(project-create)-clean-up-ruff-PLR0912 branch January 30, 2024 13:56
@daschbot daschbot mentioned this pull request Jan 30, 2024


def _get_all_lists(project_json: dict[str, Any]) -> list[dict[str, Any]] | None:
# expand the Excel files referenced in the "lists" section of the project (if any), and add them to the project
Copy link
Collaborator

@jnussbaum jnussbaum Jan 30, 2024

Choose a reason for hiding this comment

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

This comment is not true any more: the expanded lists are not added to the parsed JSON project any more (which is fine, but the comment should be updated)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will do it in the next PR (it is also cleaning)

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.

None yet

2 participants