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

psf / black / 1112
95%
master: 96%

Build:
Build:
LAST BUILD BRANCH: pre-commit-ci-update-config
DEFAULT BRANCH: master
Ran 25 Aug 2020 08:14PM UTC
Jobs 5
Files 8
Run time 45s
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
1112

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

101 of 101 new or added lines in 2 files covered. (100.0%)

4685 of 4914 relevant lines covered (95.34%)

3.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1112.1 (TEST_CMD="pre-commit run --all-files --show-diff-on-failure") 25 Aug 2020 08:14PM UTC 0
0.0
Travis Job 1112.1
2 1112.2 (TEST_CMD="coverage run -m unittest") 25 Aug 2020 08:14PM UTC 0
95.12
Travis Job 1112.2
3 1112.3 (TEST_CMD="coverage run -m unittest") 25 Aug 2020 08:14PM UTC 0
95.12
Travis Job 1112.3
4 1112.4 (TEST_CMD="coverage run -m unittest") 25 Aug 2020 08:14PM UTC 0
95.2
Travis Job 1112.4
5 1112.5 (TEST_CMD="coverage run -m unittest") 25 Aug 2020 08:14PM UTC 0
95.16
Travis Job 1112.5
Source Files on build 1112
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1112
  • 586d2423 on github
  • Prev Build on fix-docstring-reindentation (#2073)
  • Next Build on fix-docstring-reindentation (#2074)
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