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

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

Build:
Build:
LAST BUILD BRANCH: fix-fmt-skip-class-header
DEFAULT BRANCH: master
Ran 13 Apr 2026 01:53AM UTC
Files 43
Run time 2s
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

13 Apr 2026 01:49AM UTC coverage: 95.651% (+0.005%) from 95.646%
24321958736.2

push

github

web-flow
Prevent string merger from creating unsplittable long lines (#5096)

* Prevent string merger from creating unsplittable long lines (#4510)

When multi-line strings are followed by a pragma comment like
`# type: ignore` on a surrounding bracket, the StringMerger would merge
them into a single long line that could not be split back due to the
pragma comment.  For example:

    (
        "A long string "
        "continued here."
    )  # type: ignore

Would become one enormous line that violates the line length limit.

The root cause is that `_validate_msg()` only checked for pragma comments
on the string leaves themselves, not on surrounding tokens like closing
brackets. The fix extends the validation to also check for pragma
comments on tokens following the string group (particularly closing
brackets), refusing to merge when such comments are present.

Fixes #4510.

* Add CHANGES.md entry for string merger pragma comment fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

3986 of 4310 branches covered (92.48%)

8335 of 8714 relevant lines covered (95.65%)

0.96 hits per line

Source Files on job py3.13-ubuntu-latest - 24321958736.2
  • Tree
  • List 43
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24321958736
  • 825c249f on github
  • Prev Job for on main (#24314305427.5)
  • Next Job for on main (#24340184094.3)
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