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

abo-abo / lispy / 1080
63%

Build:
DEFAULT BRANCH: master
Ran 31 Jul 2017 06:42PM UTC
Jobs 2
Files 2
Run time 30s
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
1080

push

travis-ci

abo-abo
le-python.el (lispy-python-init-file): Add init for each shell

Example contents of ~/git/site-python/init.py:

```python
try:
    import reprlib
    _r = reprlib.Repr()
    _r.maxlist = 10
    _r.maxstring = 90
    repr = _r.repr
except:
    pass
```

This code prevents `repr' from outputting a megabyte-long string that
will likely hang Emacs. It's very similar to what numpy does to array
representation.

Since "e" often shows `repr(obj)' instead of `obj', you can use "e"
without having to worry about long output.

To my knowledge, this kind of interactive shell startup script isn't
really availabe in Python.  You can run some stuff in
`~.local/lib/python2.7/site-packages/sitecustomize.py', e.g. modify
`sys.path', but you can't import a definition into the top-level
module (what the code above does).

3525 of 5722 relevant lines covered (61.6%)

97.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1080.1 (emacs=emacs25) 31 Jul 2017 06:42PM UTC 0
61.6
Travis Job 1080.1
2 1080.2 (emacs=emacs-snapshot) 31 Jul 2017 06:42PM UTC 0
61.6
Travis Job 1080.2
Source Files on build 1080
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1080
  • 3f7a0414 on github
  • Prev Build on master (#1079)
  • Next Build on master (#1081)
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