From aeb784b3cda5e0040a60fd1905896086d2d2d178 Mon Sep 17 00:00:00 2001 From: Patrick Altman Date: Mon, 15 Dec 2014 16:25:00 -0600 Subject: [PATCH] Add tox file and clean up a lint error --- .travis.yml | 2 +- symposion/boxes/utils.py | 2 +- tox.ini | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml index 44782e61..a62fc3cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ install: - pip install -e . script: - - flake8 --max-line-length=100 --max-complexity=24 --statistics --benchmark symposion + - flake8 symposion diff --git a/symposion/boxes/utils.py b/symposion/boxes/utils.py index 24b95c69..3d2b4c76 100644 --- a/symposion/boxes/utils.py +++ b/symposion/boxes/utils.py @@ -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: diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..db9b7171 --- /dev/null +++ b/tox.ini @@ -0,0 +1,3 @@ +[flake8] +ignore = E501,E265 +exclude = migrations