Skip to content

Commit

Permalink
Ignore tools/json_schema_compiler from formatting by yapf.
Browse files Browse the repository at this point in the history
git cl format formats the changed python code in
tools/json_schema_compiler using yapf since tools/ specifies a
style.yapf file. However this is proving to be a nuisance since yapf
doesn't seem to be doing a good job of formatting call chains and since
the directory is not formatted currently.

Exempt the directory from python formatting for now.

BUG=1113513, 1116155

Change-Id: I69b17ceeb0319fea8976c7b170ebdd33f6f12ce0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2353418
Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Auto-Submit: Karan Bhatia <karandeepb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797872}
  • Loading branch information
Karandeep Bhatia authored and Commit Bot committed Aug 13, 2020
1 parent 583a21d commit 6a82330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .yapfignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
# Third-party code.
third_party/blink/tools/blinkpy/third_party/*
third_party/blink/web_tests/external/wpt/*

# TODO(crbug.com/1116155): Enable this for formatting by yapf.
tools/json_schema_compiler/*

0 comments on commit 6a82330

Please sign in to comment.