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

hgrecco / pint / 764
91%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2018 11:10AM UTC
Jobs 8
Files 16
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
764

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.

29 of 29 new or added lines in 3 files covered. (100.0%)

2816 of 3184 relevant lines covered (88.44%)

6.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
pint/quantity.py
Jobs
ID Job ID Ran Files Coverage
1 764.1 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2) 19 Feb 2018 11:11AM UTC 0
86.28
Travis Job 764.1
2 764.2 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2) 19 Feb 2018 11:10AM UTC 0
86.06
Travis Job 764.2
3 764.3 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2) 19 Feb 2018 11:11AM UTC 0
86.12
Travis Job 764.3
4 764.4 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2) 19 Feb 2018 11:11AM UTC 0
86.21
Travis Job 764.4
5 764.5 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2) 19 Feb 2018 11:11AM UTC 0
88.16
Travis Job 764.5
6 764.6 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2) 19 Feb 2018 11:13AM UTC 0
86.21
Travis Job 764.6
7 764.7 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0) 19 Feb 2018 11:13AM UTC 0
77.64
Travis Job 764.7
8 764.8 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0) 19 Feb 2018 11:13AM UTC 0
77.64
Travis Job 764.8
Source Files on build 764
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #764
  • 56a46f15 on github
  • Prev Build on master (#761)
  • Next Build on master (#769)
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