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

psf / black / 24321958736
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 13 Apr 2026 01:50AM UTC
Jobs 5
Files 43
Run time 1min
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.685% (+0.005%) from 95.68%
24321958736

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>

5530 of 5851 branches covered (94.51%)

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

8338 of 8714 relevant lines covered (95.69%)

4.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py3.10-ubuntu-latest - 24321958736.1 13 Apr 2026 01:53AM UTC 43
95.63
2 py3.13-ubuntu-latest - 24321958736.2 13 Apr 2026 01:53AM UTC 43
95.65
3 py3.11-ubuntu-latest - 24321958736.3 13 Apr 2026 01:53AM UTC 43
95.64
4 py3.12.10-ubuntu-latest - 24321958736.4 13 Apr 2026 01:53AM UTC 43
95.65
5 py3.14-ubuntu-latest - 24321958736.5 13 Apr 2026 01:53AM UTC 43
95.18
Source Files on build 24321958736
  • 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 Repo
  • 825c249f on github
  • Prev Build on main (#24314305427)
  • Next Build on main (#24340184094)
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