-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Repo consistency #765
Conversation
yal/tests/test_mainmenu.py
Outdated
@@ -22,17 +22,25 @@ def build_message_detail( | |||
id, | |||
title, | |||
content, | |||
tags=[], | |||
tags=None, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
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.
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.