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

psf / black / 1161
96%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2020 09:22PM UTC
Jobs 5
Files 8
Run time 2min
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

pending completion
1161

push

travis-ci-com

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

4734 of 4961 relevant lines covered (95.42%)

3.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1161.1 (TEST_CMD="pre-commit run --all-files --show-diff-on-failure") 31 Aug 2020 09:22PM UTC 0
0.0
Travis Job 1161.1
2 1161.2 (TEST_CMD="coverage run -m unittest") 31 Aug 2020 09:23PM UTC 0
95.2
Travis Job 1161.2
3 1161.3 (TEST_CMD="coverage run -m unittest") 31 Aug 2020 09:23PM UTC 0
95.2
Travis Job 1161.3
4 1161.4 (TEST_CMD="coverage run -m unittest") 31 Aug 2020 09:24PM UTC 0
95.29
Travis Job 1161.4
5 1161.5 (TEST_CMD="coverage run -m unittest") 31 Aug 2020 09:24PM UTC 0
95.25
Travis Job 1161.5
Source Files on build 1161
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1161
  • 1d2d7264 on github
  • Prev Build on master (#2120)
  • Next Build on master (#2121)
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