Skip to content

Sourcery refactored master branch#1

Open
sourcery-ai[bot] wants to merge 1 commit into
masterfrom
sourcery/master
Open

Sourcery refactored master branch#1
sourcery-ai[bot] wants to merge 1 commit into
masterfrom
sourcery/master

Conversation

@sourcery-ai

@sourcery-ai sourcery-ai Bot commented Mar 13, 2020

Copy link
Copy Markdown

Branch master refactored 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 master branch, then run:

  git fetch origin sourcery/master
  git cherry-pick FETCH_HEAD
  git reset HEAD^

See our documentation for configuring or disabling Sourcery.

Comment thread sort.py
@@ -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)):

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Lines 16-42 refactored with the following changes:

  • Replace if statement with if expression

Comment thread sort.py
@@ -56,7 +52,7 @@ def main():
s_line = line.lstrip()
indent = len(line) - len(s_line)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Lines 44-78 refactored with the following changes:

  • Replace unneeded comprehension with generator

@sourcery-ai sourcery-ai Bot force-pushed the sourcery/master branch from b0a0508 to 923e2b3 Compare May 12, 2020 12:21
@sourcery-ai sourcery-ai Bot force-pushed the sourcery/master branch from 923e2b3 to 6997d01 Compare May 20, 2020 10:35
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