google / google/yapf

Extend list / dictionary handling capabilities

Open
#796 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

I am suggesting options like:

- list entry on new line:
```
some_list = ['asdf','asdf']
```
to
```
some_list = [
'asdf',
'asdf'
]
```
- force comma after last entry:
```
some_list = [
'asdf',
'asdf'
]
```
to
```
some_list = [
'asdf',
'asdf',
]
```
- space list items:

```
some_list = ['asdf','asdf']
```
to
```
some_list = [ 'asdf', 'asdf' ]
```
options would also make sense to cover dictionaries.

Best Regards

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.