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

hgrecco / pint / 1636
91%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2020 01:07PM 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
1636

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>

6 of 6 new or added lines in 2 files covered. (100.0%)

3515 of 3882 relevant lines covered (90.55%)

11.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1636.1 (PKGS="python=3.7 flake8 black isort") 19 Feb 2020 01:07PM UTC 0
Travis Job 1636.1
2 1636.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:09PM UTC 0
Travis Job 1636.2
3 1636.3 (PKGS="python=3.6") 19 Feb 2020 01:07PM UTC 0
75.79
Travis Job 1636.3
4 1636.4 (PKGS="python=3.7") 19 Feb 2020 01:07PM UTC 0
75.79
Travis Job 1636.4
5 1636.5 (PKGS="python=3.8") 19 Feb 2020 01:07PM UTC 0
76.21
Travis Job 1636.5
6 1636.6 (PKGS="python=3.6 uncertainties=3.0") 19 Feb 2020 01:09PM UTC 0
88.87
Travis Job 1636.6
7 1636.7 (PKGS="python=3.7 uncertainties=3.0") 19 Feb 2020 01:09PM UTC 0
88.8
Travis Job 1636.7
8 1636.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 19 Feb 2020 01:10PM UTC 0
85.42
Travis Job 1636.8
9 1636.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 19 Feb 2020 01:10PM UTC 0
85.42
Travis Job 1636.9
10 1636.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 19 Feb 2020 01:11PM UTC 0
88.16
Travis Job 1636.10
11 1636.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 19 Feb 2020 01:11PM UTC 0
86.48
Travis Job 1636.11
12 1636.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 19 Feb 2020 01:11PM UTC 0
86.48
Travis Job 1636.12
13 1636.13 (PKGS="python=3.6 numpy uncertainties") 19 Feb 2020 01:12PM UTC 0
88.87
Travis Job 1636.13
14 1636.14 (PKGS="python=3.7 numpy uncertainties") 19 Feb 2020 01:12PM UTC 0
88.87
Travis Job 1636.14
15 1636.15 (PKGS="python=3.8 numpy uncertainties") 19 Feb 2020 01:13PM UTC 0
89.09
Travis Job 1636.15
16 1636.16 (PKGS="python xarray netCDF4") 19 Feb 2020 01:13PM UTC 0
87.4
Travis Job 1636.16
Source Files on build 1636
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1636
  • 04ed14ad on github
  • Prev Build on master (#1632)
  • Next Build on master (#1638)
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