google / google/yapf

Knob for coalescing triple quoted strings as arguments

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

Just like the `COALESCE_BRACKETS` knob, which turns

```python
print(
{
'foo': 1,
'bar: 2,
}
)
```

into

```python
print({
'foo': 1,
'bar: 2,
})
```

I think it would be great to have something that turns

```python
print(
"""
SELECT foo
FROM bar
"""
)
```

into

```python
print("""
SELECT foo
FROM bar
""")
```

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.