Add lint
This commit is contained in:
parent
ccb11d4f2a
commit
c7cc82a9d5
2 changed files with 8 additions and 1 deletions
|
@ -6,3 +6,10 @@ machine:
|
||||||
dependencies:
|
dependencies:
|
||||||
override:
|
override:
|
||||||
- bash build.sh
|
- bash build.sh
|
||||||
|
|
||||||
|
test:
|
||||||
|
pre:
|
||||||
|
- pip install flake8
|
||||||
|
|
||||||
|
override:
|
||||||
|
- flake8 ymd/ --ignore=E128,E501
|
||||||
|
|
|
@ -22,6 +22,7 @@ def parse_item(item, h):
|
||||||
return item
|
return item
|
||||||
return markdown.markdown(str(item))
|
return markdown.markdown(str(item))
|
||||||
|
|
||||||
|
|
||||||
def output(item, f):
|
def output(item, f):
|
||||||
item_type = type(item)
|
item_type = type(item)
|
||||||
if item_type is list:
|
if item_type is list:
|
||||||
|
@ -48,4 +49,3 @@ with StringIO() as rendered:
|
||||||
os.remove('test.html')
|
os.remove('test.html')
|
||||||
with open('test.html', 'w') as f:
|
with open('test.html', 'w') as f:
|
||||||
f.write(soup.prettify())
|
f.write(soup.prettify())
|
||||||
|
|
||||||
|
|
Reference in a new issue