Applied several PEP8 Styleguidelines.#1
Open
jmoeckel wants to merge 1 commit intoalexa-mehl:masterfrom
Open
Conversation
In detail:
# 'E101', # - Reindent all lines.
# 'E11 ', # - Fix indentation. (not include E112 and E113)
# 'E121', # - Fix indentation to be a multiple of four.
# 'E122', # - Add absent indentation for hanging indentation.
# 'E123', # - Align closing bracket to match opening bracket.
# 'E124', # - Align closing bracket to match visual indentation.
# 'E125', # - Indent to distinguish line from next logical line.
# 'E126', # - Fix over-indented hanging indentation.
# 'E127', # - Fix visual indentation.
# 'E128', # - Fix visual indentation.
# 'E20 ', # - Remove extraneous whitespace.
# 'E211', # - Remove extraneous whitespace.
# 'E22 ', # - Fix extraneous whitespace around keywords.
# 'E224', # - Remove extraneous whitespace around operator.
# 'E226', # - Fix missing whitespace around arithmetic operator.
# 'E227', # - Fix missing whitespace around bitwise/shift operator.
# 'E228', # - Fix missing whitespace around modulo operator.
# 'E231', # - Add missing whitespace.
# 'E241', # - Fix extraneous whitespace around keywords.
# 'E242', # - Remove extraneous whitespace around operator.
# 'E251', # - Remove whitespace around parameter '=' sign.
# 'E26 ', # - Fix spacing after comment hash for inline comments.
# 'E265', # - Fix spacing after comment hash for block comments.
# 'E27 ', # - Fix extraneous whitespace around keywords.
# 'E301', # - Add missing blank line.
# 'E302', # - Add missing 2 blank lines.
# 'E303', # - Remove extra blank lines.
# 'E304', # - Remove blank line following function decorator.
# 'E306', # - Expected 1 blank line before a nested definition
# 'E401', # - Put imports on separate lines.
# 'E502', # - Remove extraneous escape of newline.
# 'E70 ', # - Put semicolon-separated compound statement on separate lines.
# 'W291', # - Remove trailing whitespace.
# 'W292', # - Add a single newline at the end of the file.
# 'W293', # - Remove trailing whitespace on blank line.
# 'W391', # - Remove trailing blank lines.
Author
|
This is to increase readability and portability. |
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.
In detail:
# 'E101', # - Reindent all lines.
# 'E11 ', # - Fix indentation. (not include E112 and E113)
# 'E121', # - Fix indentation to be a multiple of four.
# 'E122', # - Add absent indentation for hanging indentation.
# 'E123', # - Align closing bracket to match opening bracket.
# 'E124', # - Align closing bracket to match visual indentation.
# 'E125', # - Indent to distinguish line from next logical line.
# 'E126', # - Fix over-indented hanging indentation.
# 'E127', # - Fix visual indentation.
# 'E128', # - Fix visual indentation.
# 'E20 ', # - Remove extraneous whitespace.
# 'E211', # - Remove extraneous whitespace.
# 'E22 ', # - Fix extraneous whitespace around keywords.
# 'E224', # - Remove extraneous whitespace around operator.
# 'E226', # - Fix missing whitespace around arithmetic operator.
# 'E227', # - Fix missing whitespace around bitwise/shift operator.
# 'E228', # - Fix missing whitespace around modulo operator.
# 'E231', # - Add missing whitespace.
# 'E241', # - Fix extraneous whitespace around keywords.
# 'E242', # - Remove extraneous whitespace around operator.
# 'E251', # - Remove whitespace around parameter '=' sign.
# 'E26 ', # - Fix spacing after comment hash for inline comments.
# 'E265', # - Fix spacing after comment hash for block comments.
# 'E27 ', # - Fix extraneous whitespace around keywords.
# 'E301', # - Add missing blank line.
# 'E302', # - Add missing 2 blank lines.
# 'E303', # - Remove extra blank lines.
# 'E304', # - Remove blank line following function decorator.
# 'E306', # - Expected 1 blank line before a nested definition
# 'E401', # - Put imports on separate lines.
# 'E502', # - Remove extraneous escape of newline.
# 'E70 ', # - Put semicolon-separated compound statement on separate lines.
# 'W291', # - Remove trailing whitespace.
# 'W292', # - Add a single newline at the end of the file.
# 'W293', # - Remove trailing whitespace on blank line.
# 'W391', # - Remove trailing blank lines.