From: Frédéric Péters Date: Fri, 26 Mar 2021 10:11:58 +0000 (+0100) Subject: reapply black with newer settings X-Git-Tag: v2022~4 X-Git-Url: https://git.0d.be/?p=chloro.git;a=commitdiff_plain;h=be2bc4a27b69f350baf5de785903b9ffb922b30e reapply black with newer settings --- diff --git a/chloro/phyll/migrations/0002_auto_20191229_1932.py b/chloro/phyll/migrations/0002_auto_20191229_1932.py index 5650df4..0620b4d 100644 --- a/chloro/phyll/migrations/0002_auto_20191229_1932.py +++ b/chloro/phyll/migrations/0002_auto_20191229_1932.py @@ -12,5 +12,8 @@ class Migration(migrations.Migration): ] operations = [ - migrations.AlterModelOptions(name='note', options={'ordering': ['-creation_timestamp']},), + migrations.AlterModelOptions( + name='note', + options={'ordering': ['-creation_timestamp']}, + ), ] diff --git a/chloro/settings.py b/chloro/settings.py index a3f3e44..143662f 100644 --- a/chloro/settings.py +++ b/chloro/settings.py @@ -81,7 +81,10 @@ WSGI_APPLICATION = 'chloro.wsgi.application' # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { - 'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'chloro',}, + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'chloro', + }, } @@ -89,10 +92,18 @@ DATABASES = { # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ - {'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',}, - {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',}, - {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',}, - {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',}, + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, ] LOGIN_REDIRECT_URL = '/' @@ -136,7 +147,9 @@ CKEDITOR_CONFIGS = { ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink'], ['Image', '-', 'HorizontalRule'], - ['RemoveFormat',], + [ + 'RemoveFormat', + ], ['Maximize'], ], 'toolbar': 'Own', diff --git a/setup.py b/setup.py index 20ef722..c11cbb8 100644 --- a/setup.py +++ b/setup.py @@ -27,9 +27,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()