google / google/yapf

Settings for forcing/prefering single/double quotes for strings

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

Description

Just a setting so quoting style can be unified across a codebase.

e.g.

for the three strings `abc`, `a'c`, `a"c`

`prefer_single_quotes` -> `'abc'`, `"a'c"`, `'a"c'`
`prefer_double_quotes` -> `"abc"`, `"a'c"`, `'a"c'`

`force_single_quotes` -> `'abc'`, `'a\'c'`, `'a"c'`
`force_double_quotes` -> `"abc"`, `"a'c"`, `"a\"c"`

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.