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

Refactor do_partition to reduce the statement count #81

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

jcjones
Copy link
Collaborator

@jcjones jcjones commented Feb 29, 2024

ruff complains about routines with more than 50 statements, and do_partition had 52. #80 bumped that to 54, and we can just do a little refactor to make it cleaner.

Removes max-statements = 52 # default is 50 from the pyproject.toml since we no longer need the override.

jcjones added a commit that referenced this pull request Feb 29, 2024
@jcjones jcjones marked this pull request as ready for review February 29, 2024 20:00
Copy link
Contributor

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

A few minor optimizations...

partitionmanager/cli.py Outdated Show resolved Hide resolved
partitionmanager/cli.py Outdated Show resolved Hide resolved
cclauss

This comment was marked as duplicate.

jcjones added a commit that referenced this pull request Feb 29, 2024
@jcjones jcjones added this to the v.0.4.0 milestone Mar 1, 2024
@jcjones jcjones merged commit 0cb3786 into main Mar 1, 2024
4 checks passed
@jcjones jcjones deleted the refactor-max-statements branch March 1, 2024 17:06
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