google / google/yapf

Yapf doesn't diff trailing newline added

Open
#1,017 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

Given:
```python
x
\ No newline at end of file
```

`yapf --diff` reports nothing
```
$ yapf --diff file.py
$
```

however, running `--in-place`, `yapf` adds a newline.

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.