google / google/yapf

DEDENT_CLOSING_BRACKETS differently trits arguments in the function

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

**Version**: v0.31.0
**Command**: python -m yapf --style='{based_on_style: pep8; DEDENT_CLOSING_BRACKETS: True}' /home/xxx/tmp/yapf.py
1) 2 arguments
**In:**
PrometheusPushGatewayHandler(
gateway=config.prometheus_gateway,job="data_producer")
**Out:**
PrometheusPushGatewayHandler(
gateway=config.prometheus_gateway, job="data_producer"
)

2) + 1 argument:
**In:**
PrometheusPushGatewayHandler(
gateway=config.prometheus_gateway,job="data_producer",grouping_key=grouping_key)

**Out:**
PrometheusPushGatewayHandler(
gateway=config.prometheus_gateway,
job="data_producer",
grouping_key=grouping_key
)

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.