git-cl: Add yapfignore support to git cl format
Adds support for .yapfignore files to "git cl format" when formatting Python files. yapf is supposed to parse the .yapfignore file in the current working directory, but this appears to not work when files are explicitly passed to yapf for formatting like they are in git cl format. Instead, parse the .yapfignore file ourselves and skip over any matching files. Bug: angleproject:3985 Change-Id: I5e8469470fb8ddbaa914005b012ac1f39dfdd223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1849807Reviewed-by:Aaron Gable <agable@chromium.org> Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Showing
Please
register
or
sign in
to comment