diff --git a/circle.yml b/circle.yml index b19a6e6..1a743a9 100644 --- a/circle.yml +++ b/circle.yml @@ -6,3 +6,10 @@ machine: dependencies: override: - bash build.sh + +test: + pre: + - pip install flake8 + + override: + - flake8 ymd/ --ignore=E128,E501 diff --git a/ymd/main.py b/ymd/main.py index 50b9332..b6e0436 100644 --- a/ymd/main.py +++ b/ymd/main.py @@ -22,6 +22,7 @@ def parse_item(item, h): return item return markdown.markdown(str(item)) + def output(item, f): item_type = type(item) if item_type is list: @@ -48,4 +49,3 @@ with StringIO() as rendered: os.remove('test.html') with open('test.html', 'w') as f: f.write(soup.prettify()) -