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

hgrecco / pint / 1635
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 19 Feb 2020 12:58PM UTC
Jobs 16
Files 18
Run time 7min
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
1635

push

travis-ci

web-flow
Merge #1023

1023: Make `__str__` and `__format__` locale aware r=hgrecco a=hgrecco

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

- [x] Closes #984 (insert issue number)
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- [x] Documented in docs/ as appropriate
- [x] Added an entry to the CHANGES file


Co-authored-by: Hernan <hernan.grecco@gmail.com>
Co-authored-by: Hernan Grecco <hernan.grecco@gmail.com>

3511 of 3882 relevant lines covered (90.44%)

11.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1635.1 (PKGS="python=3.7 flake8 black isort") 19 Feb 2020 12:58PM UTC 0
Travis Job 1635.1
2 1635.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") 19 Feb 2020 01:00PM UTC 0
Travis Job 1635.2
3 1635.3 (PKGS="python=3.6") 19 Feb 2020 12:59PM UTC 0
75.79
Travis Job 1635.3
4 1635.4 (PKGS="python=3.7") 19 Feb 2020 01:00PM UTC 0
75.79
Travis Job 1635.4
5 1635.5 (PKGS="python=3.8") 19 Feb 2020 01:00PM UTC 0
76.21
Travis Job 1635.5
6 1635.6 (PKGS="python=3.6 uncertainties=3.0") 19 Feb 2020 01:00PM UTC 0
88.87
Travis Job 1635.6
7 1635.7 (PKGS="python=3.7 uncertainties=3.0") 19 Feb 2020 01:01PM UTC 0
88.8
Travis Job 1635.7
8 1635.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 19 Feb 2020 01:03PM UTC 0
85.42
Travis Job 1635.8
9 1635.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 19 Feb 2020 01:02PM UTC 0
85.42
Travis Job 1635.9
10 1635.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 19 Feb 2020 01:03PM UTC 0
88.16
Travis Job 1635.10
11 1635.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 19 Feb 2020 01:02PM UTC 0
86.48
Travis Job 1635.11
12 1635.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 19 Feb 2020 01:03PM UTC 0
86.4
Travis Job 1635.12
13 1635.13 (PKGS="python=3.6 numpy uncertainties") 19 Feb 2020 01:04PM UTC 0
88.87
Travis Job 1635.13
14 1635.14 (PKGS="python=3.7 numpy uncertainties") 19 Feb 2020 01:04PM UTC 0
88.87
Travis Job 1635.14
15 1635.15 (PKGS="python=3.8 numpy uncertainties") 19 Feb 2020 01:05PM UTC 0
89.09
Travis Job 1635.15
16 1635.16 (PKGS="python xarray netCDF4") 19 Feb 2020 01:05PM UTC 0
87.48
Travis Job 1635.16
Source Files on build 1635
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1635
  • 04ed14ad on github
  • Prev Build on staging (#1631)
  • Next Build on staging (#1639)
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