• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / yapf / 1319
95%

Build:
DEFAULT BRANCH: master
Ran 17 Apr 2019 09:47AM UTC
Jobs 5
Files 22
Run time 29s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1319

Pull #713

travis-ci

web-flow
Add knob SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES (#1)

Add knob SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES

The existing knob SPLIT_ALL_COMMA_SEPARATED_VALUES is overly aggresive in that, if an argument list (or, more generally, a container) needs splitting, then all subexpressions will be split as well. For instance, in
```
abcdef(aReallyLongThing, b=(c,d))
```
if the line needs splitting because of `aReallyLongThing`, then it will produce
```
abcdef(
    aReallyLongThing,
    b=(c,
       d))
```
I've seen terrible things like
```
   argument: [Int,
              Int]
```
in function definitions with many arguments (even if the second `Int` fits in the line).

The new knob checks if a container (argument list, list literal, etc) fits in a line and avoids breaking if so, producing
```
abcdef(
    aReallyLongThing,
    b=(c, d))
```
which makes more sense (to me at least).

See https://github.com/prodo-ai/plz/pull/248 for an example of a codebase reformatted with the new knob (plus  `split_before_first_argument`). Nice, isn't it?
Pull Request #713: Add knob SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES

9 of 9 new or added lines in 1 file covered. (100.0%)

3100 of 3246 relevant lines covered (95.5%)

4.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1319.1 17 Apr 2019 09:47AM UTC 0
94.12
Travis Job 1319.1
2 1319.2 17 Apr 2019 09:47AM UTC 0
93.96
Travis Job 1319.2
3 1319.3 17 Apr 2019 09:47AM UTC 0
94.82
Travis Job 1319.3
4 1319.4 17 Apr 2019 09:47AM UTC 0
94.82
Travis Job 1319.4
8 1319.8 17 Apr 2019 09:47AM UTC 0
94.79
Travis Job 1319.8
Source Files on build 1319
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1319
  • Pull Request #713
  • PR Base - master (#1317)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc