Commit graph

2 commits

Author SHA1 Message Date
Emil Lundmark
70eec6d760 Configure YAPF to follow PEP-8 altogether
The Chromium Python style has recently changed to not deviate from
PEP-8 [1].

[1] https://chromium.googlesource.com/chromium/src/+/main/styleguide/python/python.md#our-previous-python-style

Bug: None
Change-Id: I0503ca6e74beed3a0a74397611abc7096da652b1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/321122
Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Jeremy Leconte <jleconte@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40786}
2023-09-22 10:32:11 +00:00
Jeremy Leconte
f22c78b01a Fix mb.py presubmit issues.
* Add a config file for python formatting (.style.yapf).
* Change the default indentation from 4 spaces to 2 spaces.
* Run 'git cl format --python' on a few python files.

Bug: webrtc:13413
Change-Id: Ia71135131276c2c499b00032d57ad16ee5200a5c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/238982
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Christoffer Jansson <jansson@google.com>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#35500}
2021-12-08 08:53:00 +00:00