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

psf / black / 43279016235
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: perf-gitignore-is-dir-once
DEFAULT BRANCH: master
Ran 12 Nov 2026 06:23PM UTC
Jobs 5
Files 47
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

12 Nov 2026 06:21PM UTC coverage: 96.052% (+0.004%) from 96.048%
43279016235

push

github

web-flow
Fix --line-ranges not removing selected trailing blank lines (#5654)

* Remove trailing blank lines selected by --line-ranges

`format_str` narrows the requested ranges with `adjusted_lines` after the first
pass. When that pass drops the extra blank lines at the end of the file, the
narrowed range ends one line earlier, so `_restore_unselected_trailing_blank_lines`
sees blank lines that no longer fall inside any range and puts them back.

A range covering the whole file therefore keeps the trailing blank lines that a
plain run removes, and incremental formatting cannot reach the state
`black --check` expects: after

    black --line-ranges=1-2 file.py

the file still ends with a blank line and `black --check` keeps failing.

Keep the sanitized ranges as the caller passed them and use those for the
restore guard. Blank lines past the requested range are still preserved.

* Add the changelog entry for #5654

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: cobalt <61329810+cobaltt7@users.noreply.github.com>

7897 of 8275 branches covered (95.43%)

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

10582 of 11017 relevant lines covered (96.05%)

4.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py3.15-ubuntu-latest - 43279016235.1 12 Nov 2026 06:27PM UTC 47
95.43
2 py3.14-ubuntu-latest - 43279016235.2 12 Nov 2026 06:27PM UTC 47
95.61
3 py3.13-ubuntu-latest - 43279016235.3 12 Nov 2026 06:27PM UTC 47
95.99
4 py3.12-ubuntu-latest - 43279016235.4 12 Nov 2026 06:27PM UTC 47
95.99
5 py3.11-ubuntu-latest - 43279016235.5 12 Nov 2026 06:27PM UTC 47
96.0
Source Files on build 43279016235
  • Tree
  • List 47
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 053ffbca on github
  • Prev Build on main (#43277659821)
  • Next Build on main (#43279083875)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc