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

hgrecco / pint / 1612
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 11 Feb 2020 03:47AM UTC
Jobs 16
Files 18
Run time 6min
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
1612

push

travis-ci

hgrecco
Make `__str__` and `__format__` locale aware

With this commit, all string formatting operations are locale aware

    >>> ureg.set_fmt_locale('fr_FR')
    >>> str(accel)
    '1.3 mètre par seconde²'
    >>> "%s" % accel
    '1.3 mètre par seconde²'
    >>> "{}".format(accel)
    '1.3 mètre par seconde²'

It should not break any code as the default locale value for the
Registry is `None` (meaning do not localize).

Close #984

3527 of 3898 relevant lines covered (90.48%)

11.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1612.1 (PKGS="python=3.7 flake8 black isort") 11 Feb 2020 03:47AM UTC 0
Travis Job 1612.1
2 1612.2 (PKGS="python=3.7 ipython matplotlib nbsphinx numpy sphinx Pygments==2.3.1 docutils==0.14 alabaster commonmark==0.8.1 recommonmark==0.5.0") 11 Feb 2020 03:49AM UTC 0
Travis Job 1612.2
3 1612.3 (PKGS="python=3.6") 11 Feb 2020 03:48AM UTC 0
75.63
Travis Job 1612.3
4 1612.4 (PKGS="python=3.7") 11 Feb 2020 03:48AM UTC 0
75.63
Travis Job 1612.4
5 1612.5 (PKGS="python=3.8") 11 Feb 2020 03:48AM UTC 0
76.06
Travis Job 1612.5
6 1612.6 (PKGS="python=3.6 uncertainties=3.0") 11 Feb 2020 03:49AM UTC 0
88.87
Travis Job 1612.6
7 1612.7 (PKGS="python=3.7 uncertainties=3.0") 11 Feb 2020 03:50AM UTC 0
88.87
Travis Job 1612.7
8 1612.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 11 Feb 2020 03:50AM UTC 0
85.38
Travis Job 1612.8
9 1612.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 11 Feb 2020 03:50AM UTC 0
85.38
Travis Job 1612.9
10 1612.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 11 Feb 2020 03:52AM UTC 0
88.15
Travis Job 1612.10
11 1612.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 11 Feb 2020 03:51AM UTC 0
86.36
Travis Job 1612.11
12 1612.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 11 Feb 2020 03:51AM UTC 0
86.43
Travis Job 1612.12
13 1612.13 (PKGS="python=3.6 numpy uncertainties") 11 Feb 2020 03:52AM UTC 0
88.87
Travis Job 1612.13
14 1612.14 (PKGS="python=3.7 numpy uncertainties") 11 Feb 2020 03:52AM UTC 0
88.87
Travis Job 1612.14
15 1612.15 (PKGS="python=3.8 numpy uncertainties") 11 Feb 2020 03:53AM UTC 0
89.08
Travis Job 1612.15
16 1612.16 (PKGS="python xarray netCDF4") 11 Feb 2020 03:54AM UTC 0
87.48
Travis Job 1612.16
Source Files on build 1612
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1612
  • fa86d1af on github
  • Prev Build on develop (#1594)
  • Next Build on develop (#1633)
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

© 2025 Coveralls, Inc