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

psf / black / 2726 / 2
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2021 06:18PM UTC
Files 11
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 Apr 2021 06:15PM UTC coverage: 95.022% (-0.04%) from 95.062%
TEST_CMD="tox -e py"

push

travis-ci

web-flow
Work around stability errors due to optional trailing commas (#2126)

Optional trailing commas put by Black become magic trailing commas on another
pass of the tool.  Since they are influencing formatting around optional
parentheses, on rare occasions the tool changes its mind in terms of putting
parentheses or not.

Ideally this would never be the case but sadly the decision to put optional
parentheses or not (which looks at pre-existing "magic" trailing commas) is
happening around the same time as the decision to put an optional trailing
comma.  Untangling the two proved to be impractically difficult.

This shameful workaround uses the fact that the formatting instability
introduced by magic trailing commas is deterministic: if the optional trailing
comma becoming a pre-existing "magic" trailing comma changes formatting, the
second pass becomes stable since there is no variable factor anymore on pass 3,
4, and so on.

For most files, this will introduce no performance penalty since `--safe` is
already re-formatting everything twice to ensure formatting stability.  We're
using this result and if all's good, the behavior is equivalent.  If there is
a difference, we treat the second result as the binding one, and check its
sanity again.

4810 of 5062 relevant lines covered (95.02%)

0.95 hits per line

Source Files on job 2726.2 (TEST_CMD="tox -e py")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2424
  • Travis Job 2726.2
  • 8672af35 on github
  • Prev Job for TEST_CMD="tox -e py" on master (#2722.2)
  • Next Job for TEST_CMD="tox -e py" on master (#2727.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