google / google/yapf

Unable to find section style in .yapf.style

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

Description

It says in help that

```
--style-help show style settings and exit; this output can be saved
to .style.yapf to make your settings permanent
```

so I did

```bash
yapf --style-help > ~/.style.yapf
```

but it yielded error

```
yapf: Unable to find section [style] in $HOME/.style.yapf
```

This workaround fixes the issue:

```
yapf --style-help > tmp && mv tmp ~/.style.yapf
```

However, I feel it'd be of better user experience if this could be somehow improved. Thank you so much!

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.