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

Break down operators.py into multiple Python modules #23

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

phihos
Copy link
Collaborator

@phihos phihos commented Dec 3, 2017

CodeClimate complains that operators.py is too long (567 lines of code (exceeds 250 allowed)).

So I took a look at it and found out that the operators can be grouped together like arithmetic, logical, decorator etc. So I created a Python module for each group and put each operator into the most fitting file.
Thanks to some init.py magic no import statements outside of operators had to be changed.

Edit: CodeClimate fails for this PR because by moving code I also moved some code smell issues between files. CC thinks I created new smells, but they are the old ones in another file. Long story short: CC can be safely ignored this time :-D

@konradhalas
Copy link
Contributor

Looks good. Can I merge it?

@phihos
Copy link
Collaborator Author

phihos commented Dec 27, 2017

Yes 👍

@konradhalas konradhalas merged commit 14999c5 into master Dec 27, 2017
@phihos phihos deleted the break-down-operators branch September 26, 2018 12:10
b-price pushed a commit to b-price/mojomutpy that referenced this pull request Mar 14, 2024
Handle annotated assignment in 3.6
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