google / google/yapf

Inline if else expressions are not indented

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

I'm using yapf --style google.
I think that the lack of indentation for the if else expression makes the formatted code confusing.

```python
task_factory = _dynamic.create_function_from_parameters(
func_name=name,
func_filename=component_filename if
(component_filename and
(component_filename.endswith('.yaml') or
component_filename.endswith('.yml'))) else None,
)
```

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.