Add tox file and clean up a lint error

This commit is contained in:
Patrick Altman 2014-12-15 16:25:00 -06:00
parent 894e7b1b2e
commit aeb784b3cd
3 changed files with 5 additions and 2 deletions

View file

@ -8,4 +8,4 @@ install:
- pip install -e .
script:
- flake8 --max-line-length=100 --max-complexity=24 --statistics --benchmark symposion
- flake8 symposion

View file

@ -7,7 +7,7 @@ except ImportError:
def load_path_attr(path):
i = path.rfind(".")
module, attr = path[:i], path[i+1:]
module, attr = path[:i], path[i + 1:]
try:
mod = import_module(module)
except ImportError, e:

3
tox.ini Normal file
View file

@ -0,0 +1,3 @@
[flake8]
ignore = E501,E265
exclude = migrations