add readme and .style.yapf for formatting
This commit is contained in:
parent
d24b667e73
commit
028eef63a8
2 changed files with 47 additions and 0 deletions
21
crawler/.style.yapf
Normal file
21
crawler/.style.yapf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[style]
|
||||
based_on_style = facebook
|
||||
|
||||
# Formatting options
|
||||
column_limit = 88
|
||||
indent_width = 4
|
||||
use_tabs = false
|
||||
continuation_indent_width = 4
|
||||
|
||||
# Spacing
|
||||
spaces_around_power_operator = true
|
||||
spaces_before_comment = 2
|
||||
|
||||
# Splitting rules
|
||||
split_before_logical_operator = true
|
||||
split_before_bitwise_operator = true
|
||||
split_before_arithmetic_operator = true
|
||||
split_before_expression_after_opening_paren = true
|
||||
split_before_first_argument = false
|
||||
split_complex_comprehension = true
|
||||
allow_split_before_dict_value = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue