Activate flake8, isort and coveralls in the configuration of tox (#105)

* Activate flake8, isort and coveralls in the configuration of tox

* Update code to respect PEP8

* Fix bug in the lang_IT for python 3

* Update the README to include the new converters.
This commit is contained in:
Ernesto Rodriguez Ortiz
2017-10-30 14:06:46 -04:00
committed by GitHub
parent c6015db8b4
commit 3da0c54f3b
52 changed files with 1393 additions and 572 deletions

View File

@@ -18,8 +18,8 @@ from __future__ import unicode_literals
import math
from .orderedmapping import OrderedMapping
from .compat import to_s
from .orderedmapping import OrderedMapping
class Num2Word_Base(object):
@@ -250,17 +250,17 @@ class Num2Word_Base(object):
def test(self, value):
try:
_card = self.to_cardinal(value)
except:
except Exception:
_card = "invalid"
try:
_ord = self.to_ordinal(value)
except:
except Exception:
_ord = "invalid"
try:
_ordnum = self.to_ordinal_num(value)
except:
except Exception:
_ordnum = "invalid"
print("For %s, card is %s;\n\tord is %s; and\n\tordnum is %s."