Permalink
Browse files

added tissue support and pep8ified

  • Loading branch information...
1 parent 2fc3dce commit 2cb583388705e997c6b7d5b5ddca567a1be07e28 @WoLpH committed Sep 25, 2013
Showing with 11 additions and 9 deletions.
  1. +1 −1 .travis.yml
  2. +0 −1 progressbar/__init__.py
  3. +0 −5 progressbar/widgets.py
  4. +9 −2 setup.cfg
  5. +1 −0 tox.ini
View
@@ -8,7 +8,7 @@ python:
# command to install dependencies
install:
- pip install . --use-mirrors
- - pip install coveralls --use-mirrors
+ - pip install nose coverage tissue coveralls --use-mirrors
# command to run tests
script:
- nosetests --with-coverage
View
@@ -360,4 +360,3 @@ def finish(self):
if self.redirect_stdout:
self._stdout.write(sys.stdout.getvalue())
sys.stdout = self._stdout
-
View
@@ -147,7 +147,6 @@ class AnimatedMarker(Widget):
it were rotating.
'''
-
def __init__(self, markers='|/-\\'):
self.markers = markers
self.curmark = -1
@@ -170,7 +169,6 @@ class Counter(Widget):
'Displays the current count'
-
def __init__(self, format='%d'):
self.format = format
@@ -200,7 +198,6 @@ class FormatLabel(Timer):
'value': ('currval', None)
}
-
def __init__(self, format):
self.format = format
@@ -224,7 +221,6 @@ class SimpleProgress(Widget):
'Returns progress as a count of the total (e.g.: "5 of 47")'
-
def __init__(self, sep=' of '):
self.sep = sep
@@ -236,7 +232,6 @@ class Bar(WidgetHFill):
'A progress bar which stretches to fill the line.'
-
def __init__(self, marker='#', left='|', right='|', fill=' ',
fill_left=True):
'''Creates a customizable progress bar.
View
@@ -3,15 +3,22 @@ description-file = README.rst
[nosetests]
verbosity=3
+detailed-errors=1
+debug=nose.loader
+
with-doctest=1
+
with-coverage=1
cover-package=progressbar
+cover-branches=1
cover-min-percentage=100
-detailed-errors=1
-debug=nose.loader
+
#pdb=1
pdb-failures=1
+with-tissue=1
+tissue-ignore=W391
+tissue-package=progressbar
[build_sphinx]
source-dir = docs/
View
@@ -5,6 +5,7 @@ envlist = py26, py27, py33, pypy
deps =
nose
coverage
+ tissue
commands =
nosetests

0 comments on commit 2cb5833

Please sign in to comment.