google / google/yapf

Option to output names of differing files (e.g. only the --- .* \(original\)) lines of yapf -d

Open
#389 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

I might be missing this in the docs, but it would be great to have an option like
```
yapf -d --name-only
```
So if I use `yapf -d` as essentially a linter, I can get just the paths to the files with differences, rather than the entire diff. I can get the same effect by piping the output of `yapf -d` into grep or sed, but that adds some unnecessary-feeling postprocessing as well as not being totally safe, because it's possible for a line in the code diff itself to also match the "--- .* \(original\)" pattern.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.