Use yapf instead of autopep8 for Python formatting

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
This commit is contained in:
Rick Altherr 2018-01-09 14:40:40 -08:00
parent 67c7914a2c
commit 820c0a5d78
3 changed files with 9 additions and 2 deletions

6
.style.yapf Normal file
View File

@ -0,0 +1,6 @@
[style]
based_on_style = pep8
split_before_expression_after_opening_paren = True
split_before_first_argument = True
split_complex_comprehension = True
split_penalty_comprehension = 2100

View File

@ -10,4 +10,4 @@ go:
format:
find . -name \*.cc -and -not -path './third_party/*' -exec $(CLANG_FORMAT) -style=file -i {} \;
find . -name \*.h -and -not -path './third_party/*' -exec $(CLANG_FORMAT) -style=file -i {} \;
find . -name \*.py -and -not -path './third_party/*' -exec autopep8 -i {} \;
find . -name \*.py -and -not -path './third_party/*' -exec yapf -p -i {} \;

View File

@ -1 +1,2 @@
autopep8
yapf
futures