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

psf / black / 1108 / 4
95%
master: 96%

Build:
Build:
LAST BUILD BRANCH: simplify-power-operator-hugging
DEFAULT BRANCH: master
Ran 25 Aug 2020 12:41AM UTC
Files 8
Run time 1s
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

25 Aug 2020 12:31AM UTC coverage: 95.204% (+0.09%) from 95.117%
TEST_CMD="coverage run -m unittest"

push

travis-ci-com

ambv
Address pre-existing trailing commas when not in the rightmost bracket pair

This required some hackery.  Long story short, we need to reuse the ability to
omit rightmost bracket pairs (which glues them together and splits on something
else instead), for use with pre-existing trailing commas.

This form of user-controlled formatting is brittle so we have to be careful not
to cause a scenario where Black first formats code without trailing commas in
one way, and then looks at the same file with pre-existing trailing commas
(that it itself put on the previous run) and decides to format the code again.

One particular ugly edge case here is handling of optional parentheses.  In
particular, the long-standing `line_length=1` hack got in the way of
pre-existing trailing commas and had to be removed.  Instead, a more
intelligent but costly solution was put in place: a "second opinion" if the
formatting that omits optional parentheses ended up causing lines to be too
long.  Again, for efficiency purposes, Black reuses Leaf objects from blib2to3
and modifies them in place, which was invalid for having two separate
formattings.  Line cloning was used to mitigate this.

Fixes #1619

4685 of 4921 relevant lines covered (95.2%)

0.95 hits per line

Source Files on job 1108.4 (TEST_CMD="coverage run -m unittest")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1579
  • Travis Job 1108.4
  • 244d1477 on github
  • Prev Job for TEST_CMD="coverage run -m unittest" on generic-should-explode (#2069.2)
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