From c7cc82a9d58a25284b1082fa48fb12a8ec465589 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 14 Mar 2017 20:04:09 +0000 Subject: [PATCH] Add lint --- circle.yml | 7 +++++++ ymd/main.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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()) -