google / google/yapf

Function call without arguments.

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

Description

When formatting a function call without arguments that passes the column limit, the closing bracket is split to a new line.

For example (with very low `column_limit`) the line
```python
return self.server.is_running()
```
is formatted to:
```python
return self.server.is_running(
)
```

is there a way to avoid this behavior without modifying the column limit?

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.