google / google/yapf

CONTINUATION_ALIGN_STYLE does not respect USE_TABS

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

Description

I'm switching my project from space indentation to tabs using yapf `USE_TABS = True`.

Some of the existing code deals with overlong lines using backslashes

```
bar = {'baz': {'qux': {'quux': ''}}}
bar['baz']['qux']['quux'] \
= 'foo'
```

I want the second line to be indented with one tab, rather than the three spaces it currently is, so I set `CONTINUATION_ALIGN_STYLE = VALIGN-RIGHT`

Yet, yapf leaves this block of code as-is.

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.