diff --git a/debian/debian_config.py b/debian/debian_config.py index 19258df..824a2fc 100644 --- a/debian/debian_config.py +++ b/debian/debian_config.py @@ -27,7 +27,12 @@ SESSION_COOKIE_SECURE = True SESSION_EXPIRE_AT_BROWSER_CLOSER = True SESSION_COOKIE_AGE = 36000 # 10h -DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': PROJECT_NAME,}} +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': PROJECT_NAME, + } +} # # local settings diff --git a/scrutiny/projects/migrations/0002_auto_20150325_0908.py b/scrutiny/projects/migrations/0002_auto_20150325_0908.py index 3d68278..36e82c5 100644 --- a/scrutiny/projects/migrations/0002_auto_20150325_0908.py +++ b/scrutiny/projects/migrations/0002_auto_20150325_0908.py @@ -11,7 +11,10 @@ class Migration(migrations.Migration): ] operations = [ - migrations.AlterModelOptions(name='platform', options={'ordering': ['order']},), + migrations.AlterModelOptions( + name='platform', + options={'ordering': ['order']}, + ), migrations.AddField( model_name='platform', name='order', diff --git a/scrutiny/settings.py b/scrutiny/settings.py index 4ab7bbc..1db791c 100644 --- a/scrutiny/settings.py +++ b/scrutiny/settings.py @@ -50,7 +50,10 @@ WSGI_APPLICATION = 'scrutiny.wsgi.application' # https://docs.djangoproject.com/en/1.7/ref/settings/#databases DATABASES = { - 'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'scrutiny.sqlite3'),} + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'scrutiny.sqlite3'), + } } # Internationalization @@ -83,7 +86,9 @@ MEDIA_URL = '/media/' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'scrutiny', 'templates'),], + 'DIRS': [ + os.path.join(BASE_DIR, 'scrutiny', 'templates'), + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/setup.py b/setup.py index a0db935..54ae703 100755 --- a/setup.py +++ b/setup.py @@ -20,9 +20,9 @@ class eo_sdist(sdist): def get_version(): - '''Use the VERSION, if absent generates a version with git describe, if not - tag exists, take 0.0- and add the length of the commit log. - ''' + """Use the VERSION, if absent generates a version with git describe, if not + tag exists, take 0.0- and add the length of the commit log. + """ if os.path.exists('VERSION'): with open('VERSION', 'r') as v: return v.read() @@ -56,6 +56,12 @@ setup( packages=find_packages(os.path.dirname(__file__) or '.'), scripts=['manage.py'], include_package_data=True, - install_requires=['django >= 1.11, < 1.12', 'requests', 'gadjo',], - cmdclass={'sdist': eo_sdist,}, + install_requires=[ + 'django >= 1.11, < 1.12', + 'requests', + 'gadjo', + ], + cmdclass={ + 'sdist': eo_sdist, + }, )