-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
85 additions
and
146 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[flake8] | ||
|
||
# We have YAPF set to wrap at 80, but that's not always possible, so we set the | ||
# limit a bit higher here. | ||
max-line-length = 100 | ||
|
||
# Ignore | ||
|
||
# E111 indentation is not a multiple of four | ||
# E121 continuation line under-indented for hanging indent | ||
# E126 continuation line over-indented for hanging indent | ||
# E261 at least two spaces before inline comment | ||
|
||
ignore = E111,E121,E126,E261 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: a11d9314b22d8f8c7556443875b731ef05965464 | ||
hooks: | ||
- id: trailing-whitespace | ||
- repo: git://github.com/pre-commit/mirrors-yapf | ||
sha: v0.16.0 | ||
sha: v0.16.0 | ||
hooks: | ||
- id: yapf | ||
args: [--in-place, --style=./yapf_style.cfg] | ||
|
||
args: | ||
- --in-place | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: a11d9314b22d8f8c7556443875b731ef05965464 | ||
hooks: | ||
- id: flake8 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[style] | ||
based_on_style = pep8 | ||
|
||
ALIGN_CLOSING_BRACKET_WITH_VISUAL_INDENT = True | ||
|
||
ALLOW_MULTILINE_DICTIONARY_KEYS = False | ||
ALLOW_MULTILINE_LAMBDAS = True | ||
|
||
BLANK_LINE_BEFORE_CLASS_DOCSTRING = False | ||
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = False | ||
|
||
COALESCE_BRACKETS = True | ||
|
||
COLUMN_LIMIT = 80 | ||
|
||
CONTINUATION_INDENT_WIDTH = 2 | ||
|
||
DEDENT_CLOSING_BRACKETS = True | ||
|
||
EACH_DICT_ENTRY_ON_SEPARATE_LINE = True | ||
|
||
INDENT_DICTIONARY_VALUE = True | ||
INDENT_WIDTH = 2 | ||
|
||
JOIN_MULTIPLE_LINES = False | ||
|
||
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = False | ||
|
||
SPACES_AROUND_DEFAULT_OR_NAMED_ASSIGN = False | ||
SPACES_AROUND_POWER_OPERATOR = False | ||
SPACES_BEFORE_COMMENT = 1 | ||
|
||
SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED = True | ||
|
||
SPLIT_BEFORE_BITWISE_OPERATOR = False | ||
SPLIT_BEFORE_DICT_SET_GENERATOR = False | ||
SPLIT_BEFORE_FIRST_ARGUMENT = True | ||
SPLIT_BEFORE_LOGICAL_OPERATOR = False | ||
SPLIT_BEFORE_NAMED_ASSIGNS = False | ||
|
||
SPLIT_PENALTY_AFTER_OPENING_BRACKET = 30 | ||
SPLIT_PENALTY_AFTER_UNARY_OPERATOR = 10000 | ||
SPLIT_PENALTY_BEFORE_IF_EXPR = 50 | ||
SPLIT_PENALTY_BITWISE_OPERATOR = 300 | ||
SPLIT_PENALTY_EXCESS_CHARACTER = 200 | ||
SPLIT_PENALTY_FOR_ADDED_LINE_SPLIT = 30 | ||
SPLIT_PENALTY_IMPORT_NAMES = 0 | ||
SPLIT_PENALTY_LOGICAL_OPERATOR = 300 | ||
|
||
USE_TABS = False |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.