summaryrefslogtreecommitdiff
path: root/.style.yapf
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-01-18 15:20:25 -0800
committerGitHub <noreply@github.com>2017-01-18 15:20:25 -0800
commit5d2234949d09d9a4c416de0c4e917930c1bf7f15 (patch)
treef54520f9237f27ba8eacc106e5231e82d9a0057f /.style.yapf
parent1403f86b78adf5dafe308ff430a8ee12571fb522 (diff)
downloadwabt-5d2234949d09d9a4c416de0c4e917930c1bf7f15.tar.gz
wabt-5d2234949d09d9a4c416de0c4e917930c1bf7f15.tar.bz2
wabt-5d2234949d09d9a4c416de0c4e917930c1bf7f15.zip
Add support for yapf python formatting tool (#276)
* Add support for yapf python formatting tool This changs adds .style.yapf to define the python style we are using. I also ran yapf over all the python files: $ yapf -i `git ls-files *.py` Going forward, we should probably add a travis test to prevent regressions. We should probably also switch to more conventional 4-space indentation, which is used by almost everybody outside of Google.
Diffstat (limited to '.style.yapf')
-rw-r--r--.style.yapf4
1 files changed, 4 insertions, 0 deletions
diff --git a/.style.yapf b/.style.yapf
new file mode 100644
index 00000000..282e84c3
--- /dev/null
+++ b/.style.yapf
@@ -0,0 +1,4 @@
+[style]
+split_before_named_assigns = False
+based_on_style = chromium
+column_limit = 79