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 #639

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from
Open

Repo consistency #639

wants to merge 43 commits into from

Conversation

fritzbrand
Copy link
Contributor

@fritzbrand fritzbrand commented Oct 22, 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
Copy link
Contributor

@erikh360 erikh360 left a comment

Choose a reason for hiding this comment

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

Nice, just the two small changes

eventstore/tests/test_views.py Outdated Show resolved Hide resolved
eventstore/tests/test_whatsapp_actions.py Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
)
(self.assertEqual(messages.id, "9e12d04c-af25-40b6-aa4f-57c72e8e3f91"),)
(self.assertEqual(messages.type, "image"),)
(self.assertEqual(messages.message_direction, Message.INBOUND),)
Copy link
Member

Choose a reason for hiding this comment

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

This looks like ruff has helpfully turned a bunch of accidental trailing commas into explicit tuples. Perhaps we should remove the commas instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

Choose a reason for hiding this comment

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

I think there are more of these -- mostly multiline ones. Any line that starts (self.assert... or the multiline equivalent with the ( on the line above can be de-tupled.

eventstore/tests/test_whatsapp_actions.py Outdated Show resolved Hide resolved
scripts/growgreat_extract/msisdn_from_details.py Outdated Show resolved Hide resolved
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.

3 participants