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

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

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2020 09:22PM UTC
Files 0
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: 0.0%. Remained the same
TEST_CMD="pre-commit run --all-files --show-diff-on-failure"

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

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Source Files on job 2121.1 (TEST_CMD="pre-commit run --all-files --show-diff-on-failure")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1679
  • Travis Job 2121.1
  • 1d2d7264 on github
  • Prev Job for TEST_CMD="pre-commit run --all-files --show-diff-on-failure" on master (#1161.1)
  • Next Job for TEST_CMD="pre-commit run --all-files --show-diff-on-failure" on master (#1162.1)
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