Sourcery refactored master branch#1
Open
sourcery-ai[bot] wants to merge 1 commit into
Open
Conversation
| @@ -22,11 +22,7 @@ def sort_blocks(): | |||
| table_of_contents = ''.join(read_me.split('- - -')[0]) | |||
| blocks = ''.join(read_me.split('- - -')[1]).split('\n# ') | |||
| for i in range(len(blocks)): | |||
Author
There was a problem hiding this comment.
Lines 16-42 refactored with the following changes:
- Replace if statement with if expression
| @@ -56,7 +52,7 @@ def main(): | |||
| s_line = line.lstrip() | |||
| indent = len(line) - len(s_line) | |||
|
|
|||
Author
There was a problem hiding this comment.
Lines 44-78 refactored with the following changes:
- Replace unneeded comprehension with generator
b0a0508 to
923e2b3
Compare
923e2b3 to
6997d01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Branch
masterrefactored by Sourcery.If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
To manually merge these changes, make sure you're on the
masterbranch, then run:See our documentation for configuring or disabling Sourcery.