1
Fork 0

Linted the python

This commit is contained in:
Jake Howard 2015-10-08 12:49:24 +01:00
parent 8db9164e4c
commit 8c0aeff064
3 changed files with 9 additions and 6 deletions

View file

@ -3,13 +3,16 @@ from glob import glob
from lxml import html
from collections import namedtuple
ASSET_DIR = os.path.dirname(os.path.realpath(__file__))
LOCAL_FILES = glob('assets/*.png') + glob('assets/*.gif')
Emoticon = namedtuple('Emoticon', ['ident', 'url'])
def get_filename(path):
return path.replace('assets/', '')
def get_icon_name(path):
return get_filename(path).replace('.png', '').replace('.gif', '')

View file

@ -4,6 +4,6 @@ set -e
export PATH=env/bin:${PATH}
flake8 . --ignore=E128,E501 --exclude="node_modules,env"
flake8 . --ignore=E501,E401 --exclude="node_modules,env"
npm test