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

hgrecco / pint / 764 / 1
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2018 11:11AM UTC
Files 16
Run time 1s
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

19 Feb 2018 10:53AM UTC coverage: 86.275% (+0.2%) from 86.107%
UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2

push

travis-ci

bors[bot]
Merge #590

590: Improve IPython pretty printers r=hgrecco a=tecki

IPython has nice ways to make objects look nice. Pint already implements the `_repr_html_` and `_repr_latex_` methods. This pull request:

- adds a `_repr_pretty_` method. This does pretty printing on the IPython command line.
- lets all `_repr_` methods obey the `default_format`. If the `default_format` contains a `~` character, most likely the user always wants the short version of the units, in all versions of `_repr_`.
- writes numbers in exponential form as such, so `3.5e15` is formatted as 3.5×10<sup>15</sup>, in both L<sup>A</sup>T<sub>E</sub>X and HTML.

2747 of 3184 relevant lines covered (86.28%)

0.86 hits per line

Source Files on job 764.1 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 764.1
  • 56a46f15 on github
  • Prev Job for UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2 on master (#761.1)
  • Next Job for UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2 on master (#769.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