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

psf / black / 2121 / 5
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2020 09:24PM UTC
Files 8
Run time 0s
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

31 Aug 2020 09:20PM UTC coverage: 95.25% (+0.05%) from 95.204%
TEST_CMD="coverage run -m unittest"

push

travis-ci

web-flow
Fix incorrect space before colon in if/while stmts (#1655)

* Fix incorrect space before colon in if/while stmts

Previously Black would format this code

```
if (foo := True):
	print(foo)
```

as

```
if (foo := True) :
	print(foo)
```

adding an incorrect space after the RPAR. Buggy code in the
normalize_invisible_parens function caused the colon to be wrapped in
invisible parentheses. The LPAR of that pair was then prefixed with a
single space at the request of the whitespace function.

This commit fixes the accidental skipping of a pre-condition check
which must return True before parenthesis normalization of a specific
child Leaf or Node can happen. The pre-condition check being skipped
was why the colon was wrapped in invisible parentheses.

* Add an entry in CHANGES.md

4732 of 4968 relevant lines covered (95.25%)

0.95 hits per line

Source Files on job 2121.5 (TEST_CMD="coverage run -m unittest")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1679
  • Travis Job 2121.5
  • 1d2d7264 on github
  • Prev Job for TEST_CMD="coverage run -m unittest" on master (#1161.3)
  • Next Job for TEST_CMD="coverage run -m unittest" on master (#1162.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