diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2b65487 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: python + +python: + - 2.6 + - 2.7 + - 3.2 + - 3.3 + - pypy + +script: + - python pp/test.py + +after_success: + - pip install pep8 pyflakes + - pep8 pp/*.py + - pyflakes pp/*.py + - pep8 *.py + - pyflakes *.py + +matrix: + allow_failures: + - python: 3.2 + - python: 3.3 + - python: pypy diff --git a/README.rst b/README.rst index 47d05ce..44394fb 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,8 @@ ``pprint++``: a drop-in replacement for ``pprint`` that's actually pretty ========================================================================= +.. image:: https://travis-ci.org/hugovk/pprintpp.svg?branch=master :target: https://travis-ci.org/hugovk/pprintpp + Installation ------------ diff --git a/pp/test.py b/pp/test.py index c011a70..dde7e23 100644 --- a/pp/test.py +++ b/pp/test.py @@ -1,13 +1,14 @@ +from __future__ import print_function import pp pp(["hello", "world"]) pp.pprint("stuff") -print pp.pformat("asdf") +print(pp.pformat("asdf")) -print pp.fmt("stuff") +print(pp.fmt("stuff")) -print dir(pp) +print(dir(pp)) -print repr(pp) +print(repr(pp))