Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Dec 12, 2022

Pull Request #5 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the advent-of-code branch, then run:

git fetch origin sourcery/advent-of-code
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from aaditkamat December 12, 2022 13:42
Comment on lines -16 to +18
print(f'The total number of calories that the elf is carrying is: {max([sum(ele) for ele in lst])}')
print(
f'The total number of calories that the elf is carrying is: {max(sum(ele) for ele in lst)}'
)
Copy link
Author

Choose a reason for hiding this comment

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

Function part_1 refactored with the following changes:

Comment on lines -23 to +25
for i in range(num_max):
for _ in range(num_max):
Copy link
Author

Choose a reason for hiding this comment

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

Function part_2 refactored with the following changes:

@sourcery-ai sourcery-ai bot closed this Dec 12, 2022
@sourcery-ai sourcery-ai bot deleted the sourcery/advent-of-code branch December 12, 2022 13:42
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.

1 participant