Skip to content
Snippets Groups Projects
Commit 25546df0 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Fix flake8 new setup

parent aceaef4a
No related branches found
No related tags found
No related merge requests found
#This file exists to allow python setup.py test to work.
import os, sys
# This file exists to allow python setup.py test to work.
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'arkindex.project.settings'
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)
from django.test.utils import get_runner
from django.conf import settings
def run():
# Setup django
from django.test.utils import get_runner
from django.conf import settings
import django
django.setup()
......@@ -18,5 +20,6 @@ def run():
failures = test_runner.run_tests(['arkindex.documents.tests'])
sys.exit(failures)
if __name__ == '__main__':
run()
[flake8]
max-line-length = 120
exclude=.git,arkindex/*/migrations/0001_initial.py
exclude=build,.eggs,.git,arkindex/*/migrations/0001_initial.py
......@@ -24,7 +24,7 @@ setup(
'test': tests_requirements,
},
packages=find_packages(),
py_modules=['arkindex',],
py_modules=['arkindex', ],
scripts=[
'arkindex/manage.py',
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment