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

Repo consistency #765

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

Repo consistency #765

wants to merge 26 commits into from

Conversation

fritzbrand
Copy link
Contributor

@fritzbrand fritzbrand commented Oct 16, 2024

This PR is for the repo consistency work done on this repo.

The main goal is getting all repos to use poetry for package management, and ruff for linting.

@fritzbrand fritzbrand marked this pull request as ready for review October 23, 2024 05:17
@fritzbrand fritzbrand requested a review from erikh360 October 23, 2024 05:17
pyproject.toml Show resolved Hide resolved
yal/change_preferences.py Show resolved Hide resolved
@@ -22,17 +22,25 @@ def build_message_detail(
id,
title,
content,
tags=[],
tags=None,
Copy link
Member

Choose a reason for hiding this comment

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

If these don't specifically need to be lists, we could use empty tuples (()) instead and not have to check for None later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Copy link
Member

Choose a reason for hiding this comment

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

We can do this for all the args that were changed from =[] to =None, and we can remove the if ... is None: checks in the body as well.

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