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:
|
||||
override:
|
||||
- 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 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())
|
||||
|
||||
|
|
Reference in a new issue