google / google/yapf

yapf: Unknown style option "ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS"

Open
#666 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

The knob `"ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS"` is not recognized by `yapf`. Neither Python code with the `FormatCode` works no running a command-line application.

The error message printed is:

`yapf: Unknown style option "ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS"`

The contents of `setup.cfg` file used:

```
[yapf]
ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS = True
```

What could be wrong?

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.